[rsyslog-notify] Forum Thread: imfile and dynamic filenames - (Mode 'post')

noreply at adiscon.com noreply at adiscon.com
Tue Oct 14 11:07:51 CEST 2014


User: manana 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24993#p24993

Message: 
----------
Hi,

I have a problem that i was hoping that someone could help me with.

Im using rsyslogd 5.8.10 on RHEL 6.5 and the module imfile to read logfiles
located in the filesystem. This all works fine with most logfiles, the
problem im having is that one application is creating logfiles based on
todays date, so the names of the logfiles are dynamic. From what i can
gather i can not use a wildcard with imfile, is this correct ?

So i was thinking it would be possible to use the variables that i normally
use in the rsyslog.conf when creating templates ,like %MONTH% for example.
The logfile names have this format for example "2014-10-14" so i thought i
could set the $InputFileName to /PATH/TO/LOG/"%YEAR%-%$MONTH%-%$DAY%" but
this is not working.

Anyone have any idea how i could solve this ? The goal is to read logfiles
with dynamic filenames(based on date) and send them to our syslogserver.

Best regards


More information about the rsyslog-notify mailing list