Hello, I think this isn't possible at the moment. You can submit a patch or sponsor some development in that direction. Or, you can try a workaround, like a cron job that would do symbolic link of today's file to a fixed file name. I'm not sure it will work, but it's worth a shot.
Best regards, Radu 2013/7/23 gaosong <[email protected]> > hi, > i am new to rsyslog, part of my config file is as follow: > > $ModLoad imfile > # File uc213 > $InputFileName /logs/uc/usercenter.out.log > $InputFileTag uc213: > $InputFileStateFile /var/log/stat-uc213 > $InputFileFacility local7 > #$InputFileReadMode 2 > $InputRunFileMonitor > $InputFilePollInterval 5 > local7.* @@ > 192.168.1.54:10514 > & ~ > > question is when the input log file name is like this: > usercenter.out.log.20130723 > > the last part "20130723" is generate by linux command "date +%Y%m%d",then > what kind of format file name i should write after "$InputFileName "? > > my rsyslog version is as follow: > [root@server2 server]# rsyslogd -v > rsyslogd 5.10.1, compiled with: > FEATURE_REGEXP: Yes > FEATURE_LARGEFILE: No > GSSAPI Kerberos 5 support: No > FEATURE_DEBUG (debug build, slow code): No > 32bit Atomic operations supported: Yes > 64bit Atomic operations supported: Yes > Runtime Instrumentation (slow code): No > > > any help will be thankful. > > > 2013-07-23 > > > > > Email:[email protected] > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com/professional-services/ > What's up with rsyslog? Follow https://twitter.com/rgerhards > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you > DON'T LIKE THAT. > _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

