Getting Data In

Find out the type of logs which are captured when it is using a script \bin\scripts\splunk-wmi.path ?

knam
Explorer

I installed SplunkForwarder and during the installation wizard, I checked all the logs for Windows (Application, Security, etc.) but in the inputs.conf, all I see is

[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]

How can I find out exactly which logs are being captured when it is using a script?

Some of my old inputs.conf uses the WinEventLog which specifically says Application, Security, System, etc. The splunk-wmi.path just points to a splunk-wmi.exe. How does splunk-wmi.exe know which logs to push? Is there another conf file splunk-wmi.exe looks at?

0 Karma
1 Solution

knam
Explorer

UPDATE with correct answer

[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path] script stanza in \etc\system\local\ DOES NOT capture all WinEventLogs if you did not select all the WinEvent Types during the SplunkUniversalForwarder installation wizard.

If you only selected Application event log for example and you want to include System and Security logs to be indexed, update the inputs.conf under \etc\apps\Splunk_TA_windows\local. Just add disabled=0 under the WinEventLog stanzas like below.

[WinEventLog://Application]
disabled = 0

[WinEventLog://Security]
disabled = 0

[WinEventLog://System]
disabled = 0

BELOW IS WRONG

Spoke with Splunk On-prem Support and confirmed that Splunk Universal Forwarders with the

[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]

stanza in the \etc\system\local\inputs.conf will by default push all Windows Event Logs. If you want to limit the Win Event Logs to be indexed, you will have to blacklist the specific logs.

https://docs.splunk.com/Documentation/Splunk/6.1.1/Data/Whitelistorblacklistspecificincomingdata

http://docs.splunk.com/Documentation/Splunk/7.0.3/Data/MonitorWindowseventlogdata

https://www.splunk.com/blog/2014/05/23/controlling-4662-messages-in-the-windows-security-event-log.h...

https://answers.splunk.com/answers/152131/filter-windows-eventcode-using-blacklist-and-whitelist.htm...

View solution in original post

0 Karma

knam
Explorer

UPDATE with correct answer

[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path] script stanza in \etc\system\local\ DOES NOT capture all WinEventLogs if you did not select all the WinEvent Types during the SplunkUniversalForwarder installation wizard.

If you only selected Application event log for example and you want to include System and Security logs to be indexed, update the inputs.conf under \etc\apps\Splunk_TA_windows\local. Just add disabled=0 under the WinEventLog stanzas like below.

[WinEventLog://Application]
disabled = 0

[WinEventLog://Security]
disabled = 0

[WinEventLog://System]
disabled = 0

BELOW IS WRONG

Spoke with Splunk On-prem Support and confirmed that Splunk Universal Forwarders with the

[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]

stanza in the \etc\system\local\inputs.conf will by default push all Windows Event Logs. If you want to limit the Win Event Logs to be indexed, you will have to blacklist the specific logs.

https://docs.splunk.com/Documentation/Splunk/6.1.1/Data/Whitelistorblacklistspecificincomingdata

http://docs.splunk.com/Documentation/Splunk/7.0.3/Data/MonitorWindowseventlogdata

https://www.splunk.com/blog/2014/05/23/controlling-4662-messages-in-the-windows-security-event-log.h...

https://answers.splunk.com/answers/152131/filter-windows-eventcode-using-blacklist-and-whitelist.htm...

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

March Community Office Hours Security Series Uncovered!

Hello Splunk Community! In March, Splunk Community Office Hours spotlighted our fabulous Splunk Threat ...

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...