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

Error with multiple Host in <Output> om_tcp
I'm using nxlog-ce-2.11.2190.msi (Community Edition) on Windows 2016 to send Windows Logs to a syslog server. If I put more than one Host to the <Output> section like <Output to_splunk> Module om_tcp Host abc1.corp.net Host abc2.corp.net Host abc3.corp.net Port 514 Exec to_syslog_ietf(); </Output> I get the following error when validating the configuration C:\Windows\system32>"C:\Program Files (x86)\nxlog\nxlog.exe" -v 2021-10-29 10:12:03 ERROR host is already defined at C:\Program Files (x86)\nxlog\conf\nxlog.conf:67 With just one Host defined, it works. What is false? Is the featuren not supported by the Community Edition? Regards, Martin

mhu1234 created
Replies: 1
View post »
last updated
NxLog not even attempting to sync first few lines
I have a im_file to om_tcp route on the community edition. My applications starts generating logs at 5am and runs every 15 minutes. I have observed that it essentially skips the first X lines and syncs things only after the x lines starting 5:15 and works fine throughout the day. There is nothing in logs at 5am. I have tried routing it to another om_file on the same machine, it works ok. Can you please help me fix it? Here is the config: ######################################## # Global directives # ######################################## User nxlog Group nxlog LogFile /var/log/nxlog/nxlog.log LogLevel INFO ######################################## # Modules # ######################################## <Extension _syslog> Module xm_syslog </Extension> <Extension _fileop> Module xm_fileop </Extension> ######################################## # Input # ######################################## <Input in-my-important-app> Module im_file File "/var/log/tomcat/my-important-app-*.log" ReadFromLast True SavePos True Exec $Filename = "myApp/" +file_basename(file_name()); Exec $Hostname = hostname_fqdn(); </Input> ######################################## # Output # ######################################## # Output to destination <Output out-destination> Module om_tcp Host [destination host] Port [destination port] OutputType Binary </Output> ######################################## # Routes # ######################################## <Route to_destination> Path in-my-important-app => out-destination </Route>

javid90khan created
Replies: 1
View post »
last updated