Spaces appearing in output

Tags:

#1 gwhitt

I am trying to read in logs stored in a flat file from an application and the output is adding a space between every characterI've change my patch to the local windows firewall log and I do not get this problem but I can see nothing strange with the source file

define ROOT C:\Program Files (x86)\nxlog

Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log


<Extension json>
  Module      xm_json
</Extension>

<Extension syslog>
  Module      xm_syslog
</Extension>


<Input Lenel>
   Module   im_file
File 'C:\Program Files (x86)\program\logs\Dataexchange.log'
   SavePos  TRUE
   Recursive TRUE
   Exec $Message = $raw_event;
   Exec $Hostname = hostname_fqdn();
   
</input>

<Output local>
  Module      om_file

  File        'c:\_nxlog.txt'

</Output>

<Route test>
 Path test => local
</Route>
#2 b0ti Nxlog ✓
#1 gwhitt
I am trying to read in logs stored in a flat file from an application and the output is adding a space between every characterI've change my patch to the local windows firewall log and I do not get this problem but I can see nothing strange with the source file define ROOT C:\Program Files (x86)\nxlog Moduledir %ROOT%\modules CacheDir %ROOT%\data Pidfile %ROOT%\data\nxlog.pid SpoolDir %ROOT%\data LogFile %ROOT%\data\nxlog.log <Extension json> Module xm_json </Extension> <Extension syslog> Module xm_syslog </Extension> <Input Lenel> Module im_file File 'C:\Program Files (x86)\program\logs\Dataexchange.log' SavePos TRUE Recursive TRUE Exec $Message = $raw_event; Exec $Hostname = hostname_fqdn(); </input> <Output local> Module om_file File 'c:\_nxlog.txt' </Output> <Route test> Path test => local </Route>

What's the encoding of the source file? This could be caused by UTF16/UCS2. If that's the case see xm_charconv.