Not getting parse multi-line XML file
pradumn
# Below is my NXLOG configuration file to parse
define ROOT C:\Program Files (x86)\nxlog
Module xm_gelf
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log
Module xm_multiline
HeaderLine /^/
EndLine /^/
Module xm_xml
Module xm_json
Module im_file
File "C:\\test\\server\\Azurion\\SoftwarePackage\\test.xml"
InputType multiline
# Discard everything that doesn't seem to be an xml event
if $raw_event !~ /^/ drop();
# Parse the xml event
parse_xml();
#Rewrite some fields
$EventTime = parsedate($timestamp);
delete($timestamp);
delete($EventReceivedTime);
# Convert to JSON
to_json();
Module om_file
File "C:\\Users\\320005935\\Desktop\\new.txt"
Path filein => fileout
# This is my XML file
2012-11-23 23:00:00
ERROR
Something bad happened.
Please check the system.
2012-11-23 23:00:12
INFO
System state is now back to normal.