Hi,

You can set the $SourceName and the $SeverityValue field in the Exec
directive. This can be done conditionally using regular expressions like
you need.
The SeverityValue field should be set to an integer which is one of the
following:

 DEBUG    1
 INFO     2
 WARNING  3
 ERROR    4
 CRITICAL 5

See these earlier posts:
https://sourceforge.net/p/nxlog-ce/mailman/nxlog-ce-users/thread/20130722151607.06e74ba8%40mephisto/#msg31201172
https://sourceforge.net/p/nxlog-ce/mailman/nxlog-ce-users/thread/20130801222428.79a4cb93%40mephisto/#msg31242514

Regards,
Botond


On Tue, Aug 20, 2013 at 4:36 PM, Lucas Sommerard <
[email protected]> wrote:

> Hello,
>
> I would like to know how can we change default field (like "Facility" or
> "Level") using the module im_file.
> By default these value are Facility: NXLOG and Level: Info, but when I
> send a log to my Graylog2 Server I want to analyze the log with a regular
> expression and change these value depending the result.
>
> I hope it's understanding and sorry for my english.
>
> Thank you for your answer.
>
> Best Regards.
>
> L. SOMMERARD
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> nxlog-ce-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users
>
>
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
nxlog-ce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to