On Tue, 9 Jun 2015, Micah Yoder wrote:
Hi,
There isn't currently a good way to find out which action number
corresponds to which action in the config, is there? Do you guys just
count off the action lines, in the order the files are included, to
figure out which action in impstats goes to which line?
We have a fair number of included files, generated by snippets in
Puppet. That makes such a prospect non-trivial, and it can change action
numbers when we add or remove parts of our configuration.
Seems like it would be good to either:
1) Allow naming of actions and have impstats print the action name
instead of number
This is already available. Just add name="name" in the action() statement
I name the things that it makes sense to put in action() statements, and put up
with numbers for the items between them.
David Lang
- or -
2) When rsyslog starts, just dump a list of the action numbers and the
file:line# that defines them
The former would be nicest but the latter probably easier to implement.
If nothing like this is currently possible, it seems as though the
second would not be terribly difficult to code. I may be open to trying.
(I pretty much know C, but rarely use it and would need someone to
bounce questions off of regarding the right way to do it in the codebase.)
Thanks!
_______________________________________________
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.