[Aide] Is there a way to include a date in the aide.log file?

Pablo Virolainen pablo at vapaa.fi
Mon Oct 19 12:40:08 EEST 2009


Ian Masters kirjoitti:
> Hello
>
> Is there a way to include a date in the aide.log file?
>
> e.g. report_url=file:@@{LOGDIR}/aide-`date '+%Y%m%d%'`.log
>
> I keep getting:
> [root at mail ~]# /usr/sbin/aide -D
> 19:syntax error:'
> 19:Error while reading configuration:'
> Configuration error
>
> I tried escaping the single quotes but that didn't help.
>
> Thanks
>
> Ian
>   

Currently there is no direct date expansion in aide (feel free to submit 
patch:).
But of course you can do it from command line.

So... it would be something like
aide -A "report_url=file:@@{LOGDIR}/aide-`date '+%Y%m%d'`.log"

or you can define just date

aide -A "@@define DATE `date '+%Y%m%d'`"
Now you can use @@{DATE} inside aide.conf

Pablo


More information about the Aide mailing list