So trying to set up a small test, anyway, NXLog keeps crashing.
Config is ok:
C:\Program Files (x86)\nxlog>nxlog -f -v "c:\Program Files
(x86)\nxlog\conf\nxlogPlay2.conf"
2014-07-28 08:32:25 INFO configuration OK
Last part of debug:
2014-07-28 08:32:05 DEBUG CONFIG: dicom-multi
2014-07-28 08:32:05 DEBUG inputreader 'dicom-multi' registered
2014-07-28 08:32:05 DEBUG Inputreader 'dicom-multi' registered
2014-07-28 08:32:05 DEBUG CONFIG: in1
2014-07-28 08:32:05 DEBUG adding string
[C:\Users\10327125\ELK\ECommerceServiceTest.txt]
2014-07-28 08:32:05 DEBUG string literal declared at line 33, character 58
in c:\Program Files (x86)\nxlog\conf\nxlogPlay2.conf
2014-07-28 08:32:05 DEBUG literal
2014-07-28 08:32:05 DEBUG parsed expression
2014-07-28 08:32:05 DEBUG CONFIG: out_tcpEcom
2014-07-28 08:32:05 DEBUG CONFIG: out_file
2014-07-28 08:32:05 DEBUG adding string
[C:\Users\10327125\ELK\EcommerceTestnxlogoutput.txt]
2014-07-28 08:32:05 DEBUG empty block
Been committing out several lines that previously worked and its still
crashing.
Here is my config:
#######################################
# Global directives #
########################################
LogFile c:\users\10327125\elk\EcommerceTestnxlogDEBUG.log
define ROOT C:\Program Files (x86)\nxlog
LogLevel DEBUG
Moduledir %ROOT%\modules
#define LOGFILENAMEIN1 C:\Users\10327125\ELK\ECommerceServiceTest.txt
#define IGNORE_ME ($raw_event =~ /INFO/ or $raw_event =~ /DEBUG/ or
$raw_event =~ /METRIC/)
#define ACTION { log_warning("dropping message"); drop(); }
########################################
# Modules #
########################################
<Extension json>
Module xm_json
</Extension>
<Extension gelf>
Module xm_gelf
</Extension>
<Extension dicom-multi>
Module xm_multiline
HeaderLine /^\d\d/\d\d/\d\d\d\d\s\d\d:\d\d:\d\d\,\d\d\d/
#06/15/2014 13:18:14,146 - DEBUG
</Extension>
<Input in1>
Module im_file
InputType dicom-multi
#ReadFromLast False
File 'C:\Users\10327125\ELK\ECommerceServiceTest.txt'
SavePos False
DirCheckInterval 30
#06/01/2014 12:09:11,124
# Exec if $raw_event =~ /^\d\d\\\d\d\\\d\d\d\d\s\d\d:\d\d:\d\d\,\d\d\d/
$_mytimestamp = strptime($1, '%Y-%m-%dT%l:%M:%S%z');
# Exec if $raw_event =~ /^\d\d\\\d\d\\\d\d\d\d\s\d\d:\d\d:\d\d\,\d\d\d/
log_info("matched"); \
# else log_info("Test");
#else $_metime = strftime(now(),'%Y-%m-%dT%l:%M:%S%z');
# Exec if %IGNORE_ME% drop(); \
# else \
# { \
# $Server = 'Server:estore-WodApp101'; \
# $raw_event = $Server + ' ' + $raw_event; \
# if minute(now()) == 30 log_info(file_name()); \
# }
# <Schedule>
# Every 30 min
# Exec log_info(%LOGFILENAMEIN1%);
# Exec log_info("I'm Up " + now()) ;
# </Schedule>
#Exec to_json();
</Input>
########################################
# Routes #
########################################
<Output out_tcpEcom>
Module om_udp
Port 5144
Host localhost
OutputType GELF
</Output>
<Output out_file>
Module om_file
File 'C:\Users\10327125\ELK\EcommerceTestnxlogoutput.txt
# #Exec $raw_event = to_json();
</Output>
<Route udp>
Path in1 => out_file, out_tcpEcom
</Route>
________________________________
Any ideas what I'm missing?
Thank you!
Chris
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users