Getting Data In

WinEventLog - ignoreOlderThan = 2d

karlosbh
Engager

We are updating the inputs.conf, with config so we can monitor the event logs as well as IIS logs.

With the IIS logs we have used 'ignoreOlderThan = 2d' so we don't pull back too much data in one go.
When i've tried this with the Event logs...

WinEventLog:Application]
ignoreOlderThan = 2d

I'm getting....

C:\Program Files\SplunkUniversalForwarder\bin>splunk btool check
Possible typo in stanza [WinEventLog:Application] in C:\Program Files\SplunkUniv
ersalForwarder\etc\apps\is-auto-web01\local\inputs.conf, line 16: ignoreOlderTha
n  =  2d
Possible typo in stanza [WinEventLog:Security] in C:\Program Files\SplunkUnivers
alForwarder\etc\apps\is-auto-web01\local\inputs.conf, line 21: ignoreOlderThan
=  2d
Possible typo in stanza [WinEventLog:System] in C:\Program Files\SplunkUniversal
Forwarder\etc\apps\is-auto-web01\local\inputs.conf, line 26: ignoreOlderThan  =
2d
Tags (2)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

Hi,

unfortunately that is not a supported option for Windows Event logs, since they are not read like normal files. There is a similar option that might work for you - current_only=1 - which skips ALL old events, and only read from this point in time and onwards.

See the windows-specific inputs.conf directives (quite far down the page);

http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf

Hope this helps,

Kristian

View solution in original post

kristian_kolb
Ultra Champion

Hi,

unfortunately that is not a supported option for Windows Event logs, since they are not read like normal files. There is a similar option that might work for you - current_only=1 - which skips ALL old events, and only read from this point in time and onwards.

See the windows-specific inputs.conf directives (quite far down the page);

http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf

Hope this helps,

Kristian

Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...