Re: [nxlog-ce-users] Windows file path regex

2015-10-20 Thread Amit Dattani
Hi, I will try the EscapeChar \n to see if this works. In the meantime, please see the current config and an example of an input file. Config: #define ROOT C:\Program Files\nxlog define ROOT C:\Program Files (x86)\nxlog Moduledir %ROOT%\modules CacheDir %ROOT%\data Pidfile %ROOT%\data\nxlog.pi

Re: [nxlog-ce-users] Windows file path regex

2015-10-19 Thread Botond Botyanszki
Hi, I think another solution would be to specify a character that does not appear in the data, for example: EscapeChar \n If you send us your .conf and an input sample that will help understand the issue. Regards, Botond On Fri, 16 Oct 2015 11:18:05 +0100 Amit Dattani wrote: > Hi, > > Firs

Re: [nxlog-ce-users] Windows file path regex

2015-10-16 Thread Amit Dattani
Hi, Firstly, thanks for the response. Tried what you have suggested and this is not working as this is now escaping my delimiter which is the pipe ( | ) character. So if I use EscapeChar '"' then the output of the log is incorrect. Can you think of anything else or would only regex help? Thanks

Re: [nxlog-ce-users] Windows file path regex

2015-10-16 Thread Botond Botyanszki
Hi, I think you need to add the following to your xm_csv instance: EscapeChar '"' EscapeControl FALSE The default value for EscapeChar is the backslash and most likely that's causing the windows pathnames to be mangled. Regards, Botond On Thu, 15 Oct 2015 20:34:27 +0100 Amit Dattani wrote:

[nxlog-ce-users] Windows file path regex

2015-10-15 Thread Amit Dattani
Hi, I am log shipping IIS Advanced Logs and one of the fields which we are shipping is s-contentpath. This has a windows path in the output. When parsing this via csv and then converting to json, I see that the \ (backslash) is being removed from the path. I understand that this is by design and