Installed Splunk on Windows machine and in the task manager I see these two processes running by default. How can I disable it?
splunk-wmi.exe and splunk-regmon.exe are instantiated by default by inputs.conf located in %SPLUNK_HOME%\etc\apps\search\default.
You can see this by running the following command: C:\Program Files\Splunk\bin>splunk list exec $SPLUNK_HOME\bin\scripts\splunk-admon.py $SPLUNK_HOME\bin\scripts\splunk-regmon.py $SPLUNK_HOME\bin\scripts\splunk-wmi.py
If you are sure that you will not be collecting events via wmi or monitor registry, then you can disable them. There are a few ways to disable:
splunk remove exec "$SPLUNK_HOME\bin\scripts\splunk-regmon.py" -auth admin:changeme
If this does not work, try the following:
splunk _internal call "/servicesNS/nobody/search/data/inputs/script/%24SPLUNK_HOME%5Cbin%5Cscripts%5Csplunk-wmi.py/disable" -method POST -auth admin:changeme
splunk _internal call "/servicesNS/nobody/search/data/inputs/script/%24SPLUNK_HOME%5Cbin%5Cscripts%5Csplunk-regmon.py/disable" -method POST -auth admin:changeme
The above command should set in etc\search\local\inputs.conf: [script://$SPLUNK_HOME\bin\scripts\splunk-wmi.py] disabled = 1
[script://$SPLUNK_HOME\bin\scripts\splunk-regmon.py] disabled = 1
[script://$SPLUNK_HOME\bin\scripts\splunk-regmon.py] disabled = 1
Upon Splunk restart, you should not see splunk-regmon.exe and splunk-wmi.exe tasks running in the task manager.
Note the minimal install script:
includes disabling these inputs. If you're trying to get a forwarder to do nothing on initial install, that's as close as we can reasonably get it.
splunk-wmi.exe and splunk-regmon.exe are instantiated by default by inputs.conf located in %SPLUNK_HOME%\etc\apps\search\default.
You can see this by running the following command: C:\Program Files\Splunk\bin>splunk list exec $SPLUNK_HOME\bin\scripts\splunk-admon.py $SPLUNK_HOME\bin\scripts\splunk-regmon.py $SPLUNK_HOME\bin\scripts\splunk-wmi.py
If you are sure that you will not be collecting events via wmi or monitor registry, then you can disable them. There are a few ways to disable:
splunk remove exec "$SPLUNK_HOME\bin\scripts\splunk-regmon.py" -auth admin:changeme
If this does not work, try the following:
splunk _internal call "/servicesNS/nobody/search/data/inputs/script/%24SPLUNK_HOME%5Cbin%5Cscripts%5Csplunk-wmi.py/disable" -method POST -auth admin:changeme
splunk _internal call "/servicesNS/nobody/search/data/inputs/script/%24SPLUNK_HOME%5Cbin%5Cscripts%5Csplunk-regmon.py/disable" -method POST -auth admin:changeme
The above command should set in etc\search\local\inputs.conf: [script://$SPLUNK_HOME\bin\scripts\splunk-wmi.py] disabled = 1
[script://$SPLUNK_HOME\bin\scripts\splunk-regmon.py] disabled = 1
[script://$SPLUNK_HOME\bin\scripts\splunk-regmon.py] disabled = 1
Upon Splunk restart, you should not see splunk-regmon.exe and splunk-wmi.exe tasks running in the task manager.