[rules-users] Help required for Rule Creation

Wolfgang Laun wolfgang.laun at gmail.com
Tue Dec 14 04:06:12 EST 2010


Usually creation times are in seconds (starting at some Epoch) and therefore
all you have to do
is ascertain that two integers don't differ by more than 30:

$first: File( pathname matches ..., $ct: creationTime )
$later: File( creationTime < ($ct + 30) )

-W


On 14 December 2010 09:37, <kiran.nair at rsa.com> wrote:

> Hi,
>
> I want to create a rule for the following scenario:
>
> 1. Event 1 : A file was created under the directory "/root/ " (Comment:
> I have implemented this using 'matches' in the rule file)
> 2. Event 2: If File was created under "/root/" then get all the files
> created within a 30 seconds of Event1. (Comment: Confused! Don't know
> how to do this!)
>
> The dataset I have is of all the files created on the system + time of
> creation.
>
> Thanks in advance!
>
> Rgds,
> Kiran
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101214/e2ce3de4/attachment.html 


More information about the rules-users mailing list