file_remove : unexpected TOKEN_INTEGER - ce - 2.9.1716

I'm trying to remove log files older than 48hours.

I read that i should use now()-seconds as the datetime, so i'll try

file_remove('filepath',now() - 172800) ;

file_remove(filepath, (now()-172800)) ;

boh failed with message : nxlog.conf; syntax error, unexpected TOKEN_INTEGER

in the doc, it's specified that datetime-integer return a datetime, but when i check with

file_remove('filepath',now()) ;

i don't get the syntax error. 

AskedAugust 22, 2016 - 3:04pm

Add a filter in nxlog

Hello, i Want to change the value of the syslog severity level depending on the contain of the message.

somethin like..

if message contains the word INFO


AskedAugust 18, 2016 - 11:15am

Making sure that conf file will send all logs to graylog


I am rather new to nxlog and really enjoy the product so far.  My question is, I want to ensure that ALL Windows Events on a server are being sent to my graylog server and that no logs are being omitted.  This appears to be the default conf and it should work this way, but I am just being extra sure.  Thanks very much in advance.


AskedAugust 11, 2016 - 9:16pm

Need to send nxlog collected windows events to sensu client

I have some windows event log being collected by nxlog, I need to send this to Sensu client(using UDP port 3030) on the same machine. Do you have any experience on it?

Have you done anything simliar on it? Just want to know how to configure nxlog and sensu client to make it work.

AskedAugust 6, 2016 - 1:19am