On Tue, 13 Aug 2013, C. L. Martinez wrote:

HI all,

Question: Is syslogtag property
(http://www.rsyslog.com/doc/property_replacer.html) the same as tag
when imfile module is used??

For example in the following configuration:

input(type="imfile" file="/tmp/test.log" tag="testlog:"
statefile="/tmp/testlog-state" facility="local6" severity="info")

if $syslogtag == 'testlog:' then {
 action(type="omfwd" protocol="tcp" target="1.1.1.1".....

Is this correct??

other than the fact that I'm not sure if the : is part of syslogtag, yes. The tag value you use for imfile is what goes in the log in the syslogtag location.

David Lang
_______________________________________________
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.

Reply via email to