Send Windows Log to Logstash Server


Hi there!

I know, this topic have been discussed many time before on this Platform, But i still have some issue with Receving Log from the Windows Platform to Logstash Server.

Logstash Server: Ubuntu.

i have tried to get the log Via NXlog and SysLog agent but it still doesnt work.

can someone pass me a link or any help , how to configure this.


(Magnus B├Ąck) #2

What doesn't work? Are you talking about the Windows Event Log or text files? Is NXLog is able to read events but fails when shipping the messages? Is Logstash receiving the messages but not able to parse them correctly?


Hi there,
I have both Machine in the Same subnet and i can access the log from linux machine(Cent OS) via Logstash(agent) over the redis (Port 6379) but when i try to sip the logs from windows Machine to Logstash Server Via NXLOG,
it gves me this error. and i am using Port TCP port 3515.

No connection could be made because the target machine actively refused it


  • Config file over the Logstash Server

tcp {
type => "eventlog"
port => 3515
codec => "line"

and NXLOG Config File

Module om_tcp
Port 3515

Looks Like this.



Hi there!!

now all is working! i can see the windows log within Kibana Interface.

But its sending all the Logs! I just need to filter some useful info.

what i did!!


Please set the ROOT to the folder your nxlog was installed into,

otherwise it will not start.

#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog

Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log

Module xm_json

Nxlog internal logs

Module im_internal Exec $EventReceivedTime = integer($EventReceivedTime) / 1000000; to_json();

Windows Event Log

# Uncomment im_msvistalog for Windows Vista/2008 and later Module im_msvistalog

Uncomment im_mseventlog for Windows XP/2000/2003

Module im_mseventlog

Exec $EventReceivedTime = integer($EventReceivedTime) / 1000000; to_json();

Module om_tcp Host **Logstash Server IP** Port 3515

<Route 1>
Path internal, eventlog => out

**LOGstash Config File

tcp {
codec => json_lines { charset => CP1252 }
port => "3515"
tags => [ "tcpjson" ]

(system) #5