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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...