you don't say what version you are running, the most current docs are at: http://www.rsyslog.com/doc/v8-stable/configuration/modules/imfile.html
I'm not sure exactly when wildcards became supported, but I believe it was well into the 8.x series.
David Lang On Wed, 28 Dec 2016, Shweta wrote:
Date: Wed, 28 Dec 2016 23:21:14 -0700 (MST) From: Shweta <[email protected]> Reply-To: rsyslog-users <[email protected]> To: [email protected] Subject: [rsyslog] Wildcard Support to log all the file logs of a directory Hi Support, I want to monitor file logs at Loggly. I have many files in a directory and want to monitor them all with a wildcard. I have a configuration like below: $ModLoad imfile $InputFilePollInterval 10 $PrivDropToGroup adm $WorkDirectory /var/spool/rsyslog # Input for FILE1 $InputFileName /FILE1 $InputFileTag APPNAME1 $InputFileStateFile stat-APPNAME1 #this must be unique for each file being polled $InputFileSeverity info $InputFilePersistStateInterval 20000 $InputRunFileMonitor # Add a tag for file events $template LogglyFormatFile,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [TOKEN@41058 tag=\"file\"] %msg%\n" # Send to Loggly then discard if $programname == 'APPNAME1' then @@logs-01.loggly.com:514;LogglyFormatFile if $programname == 'APPNAME1' then ~ What I want is to use wildcard as $InputFileName /directory/*.txt or $InputFileName /directory/* Please consider my case on priority. Thanks -- View this message in context: http://rsyslog-users.1305293.n2.nabble.com/Wildcard-Support-to-log-all-the-file-logs-of-a-directory-tp7592048.html Sent from the rsyslog-users mailing list archive at Nabble.com. _______________________________________________ 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.

