It looks like maybe the ommongo output is accepting name and omfile may not
be - I'll start a debug log and take a look after I get some coffee!

Brian

On Wed, May 2, 2012 at 7:02 AM, Rainer Gerhards <[email protected]>wrote:

>
>
> > -----Original Message-----
> > From: [email protected] [mailto:rsyslog-
> > [email protected]] On Behalf Of Brian Knox
> > Sent: Wednesday, May 02, 2012 1:02 PM
> > To: rsyslog-users
> > Subject: Re: [rsyslog] action names
> >
> > Hmm just tried that and not seeing it take effect, let me poke at it for
> a
> > few.
>
> Maybe you hit a bug... have a look at the debug file when the action is
> defined. It tells you which params it understood.
>
> Raienr
> >
> > Brian
> >
> > On Wed, May 2, 2012 at 7:00 AM, Rainer Gerhards
> > <[email protected]>wrote:
> >
> > > > -----Original Message-----
> > > > From: [email protected] [mailto:rsyslog-
> > > > [email protected]] On Behalf Of Brian Knox
> > > > Sent: Wednesday, May 02, 2012 12:59 PM
> > > > To: rsyslog-users
> > > > Subject: Re: [rsyslog] action names
> > > >
> > > > Oh!  I must have missed that in the docs!
> > >
> > > Np
> > >
> > > >
> > > > Is this also settable via the new config 6 syntax?
> > >
> > > name="xxx"
> > > Rainer
> > > >
> > > > Brian
> > > >
> > > > On Wed, May 2, 2012 at 6:55 AM, Rainer Gerhards
> > > > <[email protected]>wrote:
> > > >
> > > > > > -----Original Message-----
> > > > > > From: [email protected] [mailto:rsyslog-
> > > > > > [email protected]] On Behalf Of Brian Knox
> > > > > > Sent: Wednesday, May 02, 2012 12:20 PM
> > > > > > To: rsyslog-users
> > > > > > Subject: [rsyslog] action names
> > > > > >
> > > > > > 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.
> > > > >
> > > > > $ActionName ;)
> > > > >
> > > > > So I think we can keep the default names, right?
> > > > >
> > > > > Rainer
> > > > > <  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
> > > > > _______________________________________________
> > > > > 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
> > > > >
> > > > _______________________________________________
> > > > 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
> > > _______________________________________________
> > > 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
> > >
> > _______________________________________________
> > 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
> _______________________________________________
> 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
>
_______________________________________________
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

Reply via email to