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?
[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
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
[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
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