Hi,
Forgot to add that the following should also work since the interval
parameter is ignored for COUNT:
Exec create_stat('counter', 'COUNT', 42);
Regards,
Botond
On Tue, 25 Jun 2013 14:27:15 +0200
Botond Botyanszki <[email protected]> wrote:
> Hi,
>
> Thanks for reporting this.
> There is a typo in the code as it checks the first argument (which is the
> name), not the second. Will be fixed in the next release shortly.
> Meanwhile you should be able to use simple module variables, i.e.
> set_var('counter', get_var('counter') + 1)
> as a replacement for COUNT.
>
> Regards,
> Botond
>
>
>
> On Tue, 25 Jun 2013 02:39:02 +0000
> Marvin Nipper <[email protected]> wrote:
>
> > Apologies for not understanding this...
> >
> > (This is all with 2.4.1054, using the provided Windows msi.)
> >
> > I'm attempting to use the Statistical Counter "COUNT". That seemed easy
> > enough, so I did this:
> > Exec create_stat('counter', 'COUNT');
> >
> > I've tried this within several Module types (e.g. om_file), but when nxlog
> > executes this statement in the config file, I get this error:
> > ERROR procedure 'create_stat' failed at line 107, character 37 in
> > C:\Program Files (x86)\nxlog\conf\nxlog.conf. statement execution has been
> > aborted; create_stat(name, type) can only be used with "COUNT", for other
> > types the interval parameter is required
> >
> > Obviously, I'm doing something wrong, because it seems to have not
> > recognized the "type" correctly, and yet it does not complain about it
> > being an "invalid type" (which is something I tried, just to see what type
> > of error I would get).
> >
> > Thanks for any help/guidance that you can provide.
> >
> > Marvin Nipper
> >
> >
> > The information transmitted, including any content in this communication is
> > confidential, is intended only for the use of the intended recipient and is
> > the property of The Western Union Company or its affiliates and
> > subsidiaries. If you are not the intended recipient, you are hereby
> > notified that any use of the information contained in or transmitted with
> > the communication or dissemination, distribution, or copying of this
> > communication is strictly prohibited. If you have received this
> > communication in error, please notify the Western Union sender immediately
> > by replying to this message and delete the original message
> >
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
nxlog-ce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users