Re: [nxlog-ce-users] XML Parsing from a File

2013-07-02 Thread Guillaume Ross
Would xm_json behave the same way as xm_xml when reading from a file using im_file? I guess so? I tried your example and it worked, but I had some special cases and in the end I managed to get control of the output and generate a delimited file with properly escaped characters etc. Thanks On Fr

Re: [nxlog-ce-users] XML Parsing from a File

2013-06-20 Thread Botond Botyanszki
Hi, The problem is that im_file reads the input as single lines, this is then passed to parse_xml() which only gets a line at a time and this is not valid xml. One solution would be to use xm_multiline, but this case cannot be handled with it properly yet. The good news is that using a module vari

[nxlog-ce-users] XML Parsing from a File

2013-06-20 Thread Guillaume Ross
Hi, I'm trying to parse a local log file in XML format and send it as GELF. What I've tried for now is: 1 - Load the Extension Module xm_xml 2 - Create an input with im_file Module im_file File "pathtothelog.xml" Exec parse_xml();