I have an issue I'd like to solve concerning action names in the stats module. While I could solve it in a local fork, if it can be solved in a way that would be useful to others and incorporated back into rsyslog that's my preference.
Here's some current output from a test configuration, with JSON impstats enabled: 2012-05-02T05:55:15.345697-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 1","processed":1696,"failed":0} 2012-05-02T05:55:15.345701-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 2","processed":396,"failed":0} 2012-05-02T05:55:15.345704-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 3","processed":1320,"failed":0} 2012-05-02T05:55:15.345707-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 4","processed":1144,"failed":0} 2012-05-02T05:55:15.345709-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 5","processed":1144,"failed":0} 2012-05-02T05:55:15.345711-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 6","processed":68,"failed":0} 2012-05-02T05:55:15.345714-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 7","processed":0,"failed":0} 2012-05-02T05:55:15.345716-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 8","processed":26,"failed":0} 2012-05-02T05:55:15.345718-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 9","processed":283,"failed":0} 2012-05-02T05:55:15.345721-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 10","processed":0,"failed":0} 2012-05-02T05:55:15.345723-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 11","processed":0,"failed":0} 2012-05-02T05:55:15.345726-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 12","processed":520,"failed":0} 2012-05-02T05:55:15.345730-04:00 localhost rsyslogd-pstats: @cee: {"name":"action 12 queue","size":0,"enqueued":520,"full":0,"discarded.full":0,"discarded.nf ":0,"maxqsize":5} My issue is that action names have spaces in them. This makes using the action names as keys in some key value stores problematic. Ultimately, I would love to be able to pass a configuration option to each action explicitly naming it. Short term, my problem would be solved if the spaces were replaced by an underscore. Off the top of my head I can think of a couple of ways to do this: 1 - simply change whatever routine is generating the names to produce "action_1", etc. 2 - add a property formatter that replaces spaces with underscores, that could be used after passing this output to mmjsonparse. Thoughts? Brian _______________________________________________ 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