EVentIDs not showing
Posted: Thu Jan 07, 2016 2:32 pm
We are collecting Windows Event Logs and the field EventID is there, but looks like when I setup a table, it isn't able to search for the field. I am not sure why....
Support for Nagios products and services
https://support.nagios.com/forum/
That is an accurate statement - after a field has types assigned to it, changing those types is a process. Typically it's easiest to wait until the next index is generated (normally at midnight on the next day).Also now that the field is set to string,long I am not sure how to 'reset' that as it is already set in the index isn't it? so essentially I have to wait until the new index is created before seeing any changes to the field?
It will take some hunting. Is there any way you know of that would allow me to reproduce this problem? I could try and resolve it on my end if I got two types assigned to the same field. Perhaps a few of your nxlog configs would do?however, going to find out which might take a bit of effort.
Code: Select all
if [type] == "eventlog" {
grok {
match => ["Hostname", "%{WORD:Hostname}"]
overwrite => ["Hostname"]
}
date {
match => ["EventTime", "YYYY-MM-dd HH:mm:ss"]
}
}
if [type] == "dmz-eventlog" {
grok {
match => ["Hostname", "%{WORD:Hostname}"]
overwrite => ["Hostname"]
add_tag => ["Event Log"]
}
date {
match => ["EventTime", "YYYY-MM-dd HH:mm:ss"]
}
}Code: Select all
tcp {
type => 'eventlog'
port => 3515
tags => 'Event Log'
codec => json {
charset => 'CP1252'
}
}Code: Select all
#This DEFINES the ROOT folder nxlog is installed into
define ROOT D:\nxlog
define CERT D:\nxlog\cert
Moduledir D:\nxlog\modules
CacheDir D:\nxlog\cachedata
Pidfile D:\nxlog\data\nxlog.pid
SpoolDir D:\nxlog\spooldata
LogFile D:\nxlog\data\nxlog.log
<Extension json>
Module xm_json
</Extension>
# Windows Event Log
<Input eventlog>
# Uncomment im_msvistalog for Windows Vista/2008 and later
Module im_msvistalog
Query <QueryList> \
<Query Id="0">\
<Select Path="Application">*</Select>\
<Select Path="System">*</Select>\
<Select Path="Security">*</Select>\
<Select Path="Setup">*</Select>\
<Select Path="ForwardedEvents">*</Select>\
</Query>\
</QueryList>
# Uncomment im_mseventlog for Windows XP/2000/2003
# Module im_mseventlog
</Input>
<Processor buffer>
Module pm_buffer
MaxSize 1900000
Type Mem
WarnLimit 1572864
</Processor>
<Processor diskbuffer>
Module pm_buffer
MaxSize 3145728
Type Disk
File "D:\nxlog\buffer"
WarnLimit 2097152
</Processor>
<Output out>
Module om_tcp
Host 10.242.102.108
Port 3515
Exec $tmpmessage = $Message; delete($Message); rename_field("tmpmessage","message");
Exec $raw_event = to_json();
# Uncomment for debug output
# Exec file_write('%ROOT%\data\nxlog_output.log', $raw_event + "\n");
</Output>
<Route 1>
# Path eventlog => diskbuffer => buffer => out
Path eventlog => out
</Route>