That's a good question. One the one hand, a variable that explicity gives the
filename gives the most flexibility, but combining it with the input name
probably makes for a simpler config and is close enough to "do the right think
automatically" that it would satisfy new users the vast majority of the time.
the "best" answer would probably be to allow the input name to have a %% in it
that gets replaced by the filename, and have a separate filename variable. But
that's probably a bit on the messy side to implement.
David Lang
On Mon, 22 Dec 2014, Rainer Gerhards wrote:
What's best? ;)
Sent from phone, thus brief.
Am 22.12.2014 18:09 schrieb "David Lang" <[email protected]>:
append the filename to the input name if it's a wildcard or something like
that?
David Lang
On Mon, 22 Dec 2014, Rainer Gerhards wrote:
I think there is nothing along those lines, but definitely makes sense.
Sent from phone, thus brief.
Am 22.12.2014 18:01 schrieb "David Lang" <[email protected]>:
This is a new feature, so I'm not sure. But if you log with the format
RSYSLOG_DebugFormat you will see all the variables that are defined.
Take a
look and see what's listed.
David Lang
On Mon, 22 Dec 2014, Maupertuis Philippe wrote:
Hi list,
Using imfile to watch a whole directory, I need to include the filename
or the generated state file name in the message.
Is there any available variable to do that ?
Thanks
Philippe
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.