Ask questions. Get answers. Find technical product solutions from passionate experts in the NXLog community.

om_http retry
It appears that nxlog continually retries when trying to send a log. Is there a way to limit the amount of retries and continue on if it fails over x amount of times? My issue is this, if the body of the request is bad, I will get a 400 as a result. This means, I could get stuck trying to send a bad message over and over.

pbaer created
Replies: 1
View post »
last updated
nxlog configuration problem in windows 10
I am trying to configure to capture windows 10 logs and it is displaying the following messages below: 2019-04-19 23:40:05 WARNING nxlog-ce received a termination request signal, exiting ... 2019-04-19 23:40:07 WARNING no functional input modules! 2019-04-19 23:40:07 WARNING no routes defined! 2019-04-19 23:40:07 WARNING not starting unused module out 2019-04-19 23:40:07 INFO nxlog-ce-2.10.2150 started look how this nxlog.conf Panic Soft #NoFreeOnExit TRUE define ROOT C: \ Program Files (x86) \ nxlog define CERTDIR% ROOT% \ cert define CONFDIR% ROOT% \ conf define LOGDIR% ROOT% \ data define LOGFILE% LOGDIR% \ nxlog.log LogFile% LOGFILE% Moduledir% ROOT% \ modules CacheDir% ROOT% \ data Pidfile% ROOT% \ data \ nxlog.pid SpoolDir% ROOT% \ data <Extension _syslog> Module xm_syslog </ Extension> <Extension gelf> Module xm_gelf </ Extension> <Output out> Module om_tcp Host 192.168.1.48 Port 12201 #Exec to_syslog_snare (); OutputType GELF_TCP </ Output> <Extension _charconv> Module xm_charconv AutodetectCharsets iso8859-2, utf-8, utf-16, utf-32 </ Extension> <Extension _exec> Module xm_exec </ Extension> <Extension _fileop> Module xm_fileop # Check the size of our log file hourly, rotate if larger than 5MB &lt;Schedule&gt; Every 1 hour Exec if (file_exists ('% LOGFILE%') and \ (file_size ('% LOGFILE%')&gt; = 5M)) \ file_cycle ('% LOGFILE%', 8); &lt;/ Schedule&gt; # Rotate our log file every week on Sunday at midnight &lt;Schedule&gt; When @weekly Exec if file_exists ('% LOGFILE%') file_cycle ('% LOGFILE%', 8); &lt;/ Schedule&gt; </ Extension>

aledefreitas created
Replies: 1
View post »
last updated
using CE and EE in a same machine
Hi, I'm using EE trial edition now in my machine but i need to use CE edition as well for testing. Can I use both in same machine? will I lose my EE trial if i download CE now?

Sangeetha created
Replies: 1
View post »
last updated
om_http multiple records per http call
Is there a way to send multiple records in an http call? I'd like to send multiple rows of my log file via an http call.

pbaer created
Replies: 1
View post »
last updated
syslog_tls too many open files
There is a bug in NXLog Community Edition 2.10.2150, with module im_ssl regarding opening CA files. NXLog seems to create a file descriptor for the CA file each time a new connection is made. That is, NXLog opens the file again and again. If NXLog runs on Linux, this can quickly hit the OS limit of maximum number of files open. The following error is seen repeatedly once the OS limit of file descriptors is reached: ERROR SSL error, failed to load ca cert from '<path_to_file>', Too many open files Raising the OS limit is only a temporary solution: eventually, the next limit can be hit How can this bug be fixed?

lmpardey created
Replies: 1
View post »
last updated
See om_http request
I am trying to set up an om_http output. I get the response of ERROR HTTP response status is not OK: 400 Bad Request I need to trouble shoot what message I am actually sending. Is there an easy way to see what message is sent? This is my in/out config. <Extension _syslog> Module xm_syslog </Extension> <Extension _json> Module xm_json </Extension> <Input in> Module im_file File '<scrubbed>/data.json' Exec $message = to_json(); </Input> <Output out> Module om_http URL <scrubbed> HTTPSCAFile <scrubbed> HTTPSCertFile <scrubbed> HTTPSCertKeyFile <scrubbed> ContentType application/vnd.kafka.v1+json </Output> <Route 1> Path in => out </Route>

pbaer created
Replies: 1
View post »
last updated
Nxlog for graylog
Hi, i have recently setup graylog and i'm using nxlog as my collector, everything seems to be working fine except nxlog is not sending logs to the graylog server, i have checked nxlog logs and this is the error 2019-04-16 11:51:08 ERROR failed to open C:\Users\s.chimere\Desktop\GRAYLOG; Access is denied C:\Users\s.chimere\Desktop\GRAYLOG this is where i have my test logs Please can anyone help.

Symbol.Chimere created
Replies: 1
View post »
last updated
NXLog 4.3.4308 is fault at module libapr-1-0
Hi everybody, I use NXLog EE 4.3.4308. Time to time client is crushed with this error at module libapr-1-0.dll. Windows Application log: 2019-04-14 01:00:06 ERROR 1000 Faulting application name: nxlog.exe, version: 4.3.4308.0, time stamp: 0x00000000 Faulting module name: libapr-1-0.dll, version: 0.0.0.0, time stamp: 0x00000000 Exception code: 0xc0000005 Fault offset: 0x00000000000084b9 Faulting process id: 0x197c Faulting application start time: 0x01d4f112445554b9 Faulting application path: C:\nxlog\nxlog.exe Faulting module path: C:\nxlog\libapr-1-0.dll Report Id: e1a9c09a-a1e6-432d-8ecc-12d042258be8 Faulting package full name: Faulting package-relative application ID: Any ideas, please. Thanks! NXLog's log before crushed: 2019-04-14 00:56:37 ERROR apr_stat() failed on file C:\logs\2018-12-14.log; Access is denied. 2019-04-14 00:56:39 WARNING input file was deleted: C:\logs\2018-12-14.log This is old log file was deleted in weekly log rotation. Why NXLog scanning old files? This file was not updated for 3 month.

hatula created
Replies: 1
View post »
last updated
transferring a csv file from one location in my local to another
Hi, I'm trying to parse a csv log file from my local and store it again in another location in my local. But I see it is not happening. The config has no errors. the destination file is same as source file with respect to file properties. Can you tell whether any specific check should be done? <Extension csv_parser1> Module xm_csv Fields date-time,client-ip,client-hostname,server-ip,server-hostname, source-context,connector-id,source,event-id,internal-message-id,message-id,recipient-address, recipient-status,total-bytes,recipient-count,related-recipient-address,reference,message-subject, sender-address,return-path,message-info,directionality,tenant-id, original-client-ip,original-server-ip,custom-data Delimiter , </Extension> Message Tracking log as input <Input messagetracking> Module im_file File '%BASEDIR%file.log' <Exec> if $raw_event =~ /^(\xEF\xBB\xBF)?(date-time,|#)/ drop(); else { csv_parser1->parse_csv(); $EventTime = parsedate(${date-time}); } </Exec> </Input> <Output msg> Module om_file File 'location\msg.log' </Output> <Route 1> Path messagetracking => msg </Route>

Sangeetha created
Replies: 2
View post »
last updated
Exec block with regular expression
Can you explain what exactly happens in this block? I don't get a clear explanation of what "xEF\xBB\xBF" means in the below code and why it is having drop ()? . <Exec> if $raw_event =~ /^(\xEF\xBB\xBF)?(date-time,|#)/ drop(); else { csv_parser->parse_csv(); $EventTime = parsedate(${date-time}); } </Exec>

Sangeetha created
Replies: 1
View post »
last updated
Cost of Enterprise Edition
Hi, I would like to know the cost of enterprise edition. Also, I would like to know whether we could use the purchased nxlog EE package in more than one server to collect logs?

Sangeetha created
Replies: 1
View post »
last updated
nxlog error when tried to use xm_w3c module
Hi, I'm using a CE where xm_w3c module is not available. So i'm getting below error: 2019-04-09 14:59:30 ERROR Failed to load module from C:\Program Files (x86)\nxlog\modules\extension\xm_w3c.dll, The specified module could not be found. ; The specified module could not be found. 2019-04-09 14:59:30 ERROR Invalid InputType 'w3c_parser' at C:\Program Files (x86)\nxlog\conf\nxlog.conf:94 Is there a way to overcome this error in CE by downloading the particular module ? Or should I try using the Enterprise edition?

Sangeetha created
Replies: 1
View post »
last updated
McAfee log TO Nxlog - Certificat error
Hi, Im actually having an issue with my nxlog server. We are trying to send antivirus log from a McAfee EPO to my NX. The problem we facing is that when we try a connection test from EPO to NXLOG we get this message on our Nxlog server. 2019-04-09 19:32:54 INFO SSL connection accepted from 10.28.26.214:59126 2019-04-09 19:32:54 ERROR SSL error, SSL_ERROR_SSL: retval -1, reason: peer did not return a certificate 2019-04-09 19:32:54 WARNING SSL connection closed from 10.28.26.214:59126 Can we receive the AV log without using the certificate ? Do you know a way to bypass this ?. The certificat have been created with OPENSSL with the help of one of your technicien and the certificat looks good... we have somme difficulty to understand why this operation fail. We have also put the certificat we create for NXLOG on our Antivirus server to let them communicate. Do you have any idea of what is the problem ? Your help is very appreciated gain. Greetings,

MaxiTremblaycgi created
Replies: 1
View post »
last updated
Performance of community vs enterprise edition for WEC/WEF
Is the scalability / performance of community vs enterprise edition any different? We tried the community edition for WEC/WEF and it appears to be dropping logs at 2000 eps. We're wondering if there are any configuration we should be aware of. Moreover, please provide sizing recommendations: > What eps can a single nxlog agent support for WEC/WEF collection? > How many VM's of what size (CPU cores and GB memory) should we plan for to support 50,000 eps?

mshakir created
Replies: 1
View post »
last updated
NxLog run time and throttling
Is there a way to run NxLOG in a "throttled" state during certain times of the day? For instance, process x number of logs per hour from 8-5

Deleted user created
Replies: 1
View post »
last updated
NXLog hogs memory when polling PostgreSQL database
Hi. We are facing this problem that NXLog takes a lot of memory when using it to collect logs from PostgreSQL database. I tried to modify the polling interval in the config but it did not help. Our config is like this now: <Input PostgreSQL> Module im_dbi Driver pgsql SavePos false PollInterval 5 Option host 127.0.0.1 Option username ***** Option password ************** Option dbname messagelog SQL SELECT id, discriminator, time, queryid, message, timestamprecord, response, memberclass, membercode, subsystemcode FROM logrecord Exec $SourceName = 'PostgreSQL'; Exec to_json(); </Input> <Output out> Module om_tcp Host 192.168.1.1 Port 1468 Exec to_syslog_ietf(); </Output> <Route 1> Path PostgreSQL => out </Route> I enabled debug and it produces a huge amount of these lines per second: 2019-04-09 15:00:57 DEBUG worker 0 processing event 0x7f67240a6d80 2019-04-09 15:00:57 DEBUG PROCESS_EVENT: POLL (out) 2019-04-09 15:00:57 DEBUG nx_module_pollset_poll: out 2019-04-09 15:00:57 DEBUG worker 2 got signal for new job 2019-04-09 15:00:57 DEBUG worker 2 got no event to process 2019-04-09 15:00:57 DEBUG worker 2 waiting for new event 2019-04-09 15:00:57 DEBUG [out] no poll events, pollset_poll timed out 2019-04-09 15:00:57 DEBUG nx_event_to_jobqueue: POLL (out) 2019-04-09 15:00:57 DEBUG event added to jobqueue 2019-04-09 15:00:57 DEBUG worker 0 processing event 0x7f67240a4fb0 2019-04-09 15:00:57 DEBUG PROCESS_EVENT: POLL (out) 2019-04-09 15:00:57 DEBUG nx_module_pollset_poll: out 2019-04-09 15:00:57 DEBUG worker 1 got signal for new job 2019-04-09 15:00:57 DEBUG worker 1 got no event to process 2019-04-09 15:00:57 DEBUG worker 1 waiting for new event 2019-04-09 15:00:57 DEBUG [out] no poll events, pollset_poll timed out 2019-04-09 15:00:57 DEBUG nx_event_to_jobqueue: POLL (out) 2019-04-09 15:00:57 DEBUG event added to jobqueue 2019-04-09 15:00:57 DEBUG worker 0 processing event 0x7f67240a6d80 2019-04-09 15:00:57 DEBUG PROCESS_EVENT: POLL (out) 2019-04-09 15:00:57 DEBUG nx_module_pollset_poll: out 2019-04-09 15:00:57 DEBUG worker 2 got signal for new job 2019-04-09 15:00:57 DEBUG worker 2 got no event to process 2019-04-09 15:00:57 DEBUG worker 2 waiting for new event 2019-04-09 15:00:57 DEBUG [out] no poll events, pollset_poll timed out 2019-04-09 15:00:57 DEBUG nx_event_to_jobqueue: POLL (out) 2019-04-09 15:00:57 DEBUG event added to jobqueue 2019-04-09 15:00:57 DEBUG worker 0 processing event 0x7f67240a4fb0 We are not seeing the memory usage problem on other log collecting methods. Any ideas what could cause this? PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 21239 root 20 0 162120 2396 1600 R 0.3 0.1 0:00.04 top 28670 nxlog 20 0 1589652 1.3g 3676 S 0.3 34.4 14:33.41 nxlog

JaVa created
Replies: 1
View post »
last updated
im_odbc - incorrect syntax and ERROR id column not found or its type is unsupported
Hello, I hope someone can help me. I need to pick application logs from a few MSSQL database tables. 3 of 4 works perfect -there are no issues getting the data, but one table is causing issues. Below you can see input I am using. As you can see, there is one column name with the Danish character, however, I am not sure if only this is causing trouble. The error I receive is: ERROR SQLExecDirect failed, 42000:2:102:[Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near 'Ą'.; 42000:3:319:[Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a s (odbc error code: -1) However, If I remove this column from SELECT, another error occurs: ERROR id column not found or its type is unsupported. I received a similar error than I left some additional spaces in the query, but after that, I used notepad++ to make sure I don't leave any hidden characters. ========================================================= </Input> <Input odbc_besked> Module im_odbc ConnectionString Driver={SQL Server Native Client 11.0};Server=SERVERNAME\mssql2014,port;Database=database_name;Trusted_Connection=yes; SQL SELECT BeskedType, Oprettet, InternBeskedId, SvarPåInternBeskedId, Retning, BeskedArt, SoapBeskedId, BeskedId, HttpStatusCode, Fra, Til, Failover, EnvelopeStartTag, SoapHeaderElement, IndeholderSoapFault, Stack FROM table_name WITH (NOLOCK) WHERE InternBeskedId > ? </Input>

Lauxna created
Replies: 1
View post »
last updated
unable to see log file data using nxlog im_file
define ROOT C:\Program Files (x86)\nxlog define ROOT_STRING C:\Program Files (x86)\nxlog define CERTDIR %ROOT%\cert Moduledir %ROOT%\modules CacheDir %ROOT%\data Pidfile %ROOT%\data\nxlog.pid SpoolDir %ROOT%\data LogFile %ROOT%\data\nxlog.log <Extension charconv> Module xm_charconv AutodetectCharsets utf-8, euc-jp, utf-16, utf-32, iso8859-2 </Extension> <Extension fileop> Module xm_fileop </Extension> <Input im_file> Module im_file File "C:\inetpub\vhost\Auth\logs\nlog-test.log" SavePos TRUE Exec $raw_event = '[xxxxxxxxxxxxxxxxxxx]' + $raw_event; Exec $Message = $raw_event; </Input> <Output out> Module om_tcp Host listener.logz.io Port 8010 </Output> <Route route> Path im_file => out </Route>

manzur.shaikh created
Replies: 1
View post »
last updated
UserName on events Logon/Logoff in im_msvistalog
Hi, I am collecting events (im_msvistalog) from system 7001 and 7002 logon and logoff, I would like to know which field I use to catch the user who is logged on or off, because $UserID returns a SID. Thank you.

Altair.Pa created
Replies: 1
View post »
last updated
Transferring two different CSV files using one config file
Hi, I'm trying to transfer two different csv files having different set of columns to a location. I'm trying to define them in one config file. I would like to know how we define the Extension module for this scenario since xm_csv is going to be the common one for the entire file. Is there any option to use more than one extension module with xm_csv specific to each file? Sample: Is this possible in one config file? Extension <Extension csv_parser> Module xm_csv Fields A,B,C,D Delimiter , </Extension> <Extension csv_parser> Module xm_csv Fields E,F,G Delimiter , </Extension>

Sangeetha created
Replies: 1
View post »
last updated