<div dir="ltr">On 12 April 2013 01:20, Root, Paul T <span dir="ltr"><<a href="mailto:Paul.Root@centurylink.com" target="_blank">Paul.Root@centurylink.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class=""><br></p><p class=""><u></u></p>
<p class="">Is there a way to tell  analysis that I want to look for this file, but if it doesn’t exist, that’s ok?</p></div></div></blockquote><div><br></div><div style>I don't think so.  But you can work around this in client-local.cfg, like so:</div>

<div style><br></div><div style>file:`[ -f /path/to/file ] && echo /path/to/file || echo /dev/null`</div><div style><br></div><div style>This will simply send through a different filename in the client data, and the server-side will act as if you haven't configured it at all, which I think means it won't report anything.</div>

<div style><br></div><div style>Also, there seems to be an undocumented modifier "optional" for both FILE and LOG clauses.  I haven't used this, but it seems you would just append it to the end of the FILE line in analysis.cfg, like so:</div>

<div style><br></div><div style>FILE:/path/to/file red mtime<7776000 optional</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div lang="EN-US" link="blue" vlink="purple"><div><p class="">While, I’m at it, is mtime> only in seconds or can I put a ‘d’ modifier for days on the end of it?<br></p></div></div></blockquote><div><br></div><div style>

Nope, the string after "mtime>" is fed straight into aton() before being stored in the rule structure, so it can only be digits.</div><div style><br></div><div style>Cheers<br></div><div style>Jeremy</div></div>

</div></div>