Hi,

This is an inherent limitation and is noted in the documentation:
http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html#xm_multiline_config
If applicable, consider using the EndLine or FixedLineCount directives
to overcome this.

Regards,
Botond

On Sun, 19 Jan 2014 09:35:11 +0200
Assaf Leibovitch <[email protected]> wrote:

> Hi,
> 
> I have a Python script that logs into a file.
> 
> 
> Log example:
> 2014-01-19 09:21:14,071 INFO    logger.py      Execution Completed
> 2014-01-19 09:21:14,071 INFO    logger.py      Exiting with exit code 1
> 
> 
> 
> I use xm_multiline and ship the logs to a file (converting to JSON).
> 
> The issue is that the last line doesn't appear... only when I execute the 
> script again.
> 
> 
> <Extension exec-multi>
>     Module xm_multiline
>     HeaderLine /^\d\d\d\d-\d\d-\d\d\s+\d\d:\d\d:\d\d/
> </Extension>
> 
> 
> <Input execution>
>     Module im_file
>     File "/var/tmp/execution.log"
>     InputType exec-multi
>     SavePos TRUE
> </Input>
> 
> 
> 
> Any idea how to get the last line included, seems like my NXlog config 
> waits for the next line to trigger parsing of the last run last line...
> 
> Thanks

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
nxlog-ce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to