On Tue, Aug 13, 2013 at 2:37 PM, David Lang <[email protected]> wrote:

> On Tue, 13 Aug 2013, C. L. Martinez wrote:
>
>  HI all,
>>
>> Question: Is syslogtag property
>> (http://www.rsyslog.com/doc/**property_replacer.html<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.
>
>
The colon should not be part of it, but imfile (I think) does not check for
invalid characters ... and it is probably too late to change that without
breaking too much...

Rainer

> David Lang
>
> ______________________________**_________________
> rsyslog mailing list
> http://lists.adiscon.net/**mailman/listinfo/rsyslog<http://lists.adiscon.net/mailman/listinfo/rsyslog>
> http://www.rsyslog.com/**professional-services/<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.

Reply via email to