Splunk® Enterprise Security

Administer Splunk Enterprise Security

Turn on debug logging in Splunk Enterprise Security

You can turn on debug logging for each component in Splunk Enterprise Security.

Turn on debug logging for adaptive response actions

Adaptive response actions have a global param.verbose setting that can be applied to the alert_actions.conf file to impact all invocations of the action. You can also use the savedsearches.conf file to place the action in "debug mode" for action invocations specific to that saved search.

To turn on debug logging through the CLI, edit the savedsearches.conf file as follows:

## $SPLUNK_HOME/etc/apps/<app>/local/savedsearches.conf
[<search_name>]
...
action.<action_name>.param.verbose = true
...

After changing the parameter, reload the savedsearches.conf from the UI.

For more information on reloading the files, see [to reload files] in the Splunk Enterprise Admin manual.


Follow these steps to turn on debug logging through the GUI and set the param.verbose setting to true:

  1. From the Splunk platform menu bar, select Settings and select Searches, Reports, and Alerts.
  2. Search for the name of saved search using the search filter.
  3. Select Edit and then select Advanced edit.
  4. Scroll to action.<action_name>.param.verbose
  5. Set it to true.
  6. Select Save.

Turn on debug logging for custom search commands protocol, Version 2

You can use the "| noop log_DEBUG=*" command to set the Version 2 Custom Search Command protocol, or chunked, logging level to debug. This works due to a stream handler that sends the logging output to the sys.stderr stream, which is used by searches and displayed in the search.log.

To set the noop command, append it to the end of your chunked custom search, for example:

| ... | <chunked_search_command> | noop log_DEBUG=*

Turn on debug logging for custom search command protocol, Version 1

Version 1 of the Custom Search Command protocol, or Intersplunk search command, currently does not respect "| noop log_DEBUG=*". Log levels can only be modified by altering the command python script at your own risk. Intersplunk search commands currently log to their own explicit log files instead of search.log.

Turn on debug logging for extensible administration interface handlers

Extensible Administration Interface (EAI) handlers log levels can be modified by altering the handler python script at your own risk.

Turn on debug logging for modular inputs

Modular inputs use a globally defined "debug" setting" that can be toggled in the inputs.conf file.

Follow these steps to turn on debug logging through the CLI and edit the inputs.conf file:

## $SPLUNK_HOME/etc/apps/<app>/local/inputs.conf
[<modular_input_name>://<module_input_instance>]
debug = true

Follow these steps to turn on debug logging through the UI for most modular inputs:

  1. From the Splunk platform menu bar, select Settings and then select Data inputs.
  2. Select a modular input such as Threat Intelligence Manager.
  3. Select an input such as da_ess_threat_local.
  4. Check the check box for Debug.
  5. Select Save.

Follow these steps to turn on debug logging through the UI for Asset and Identity Management:

  1. In Splunk Enterprise Security, select Configure > Data Enrichment > Asset and Identity Management.
  2. Select the Global Settings tab.
  3. Turn on the toggle switch for Debug Mode.
  4. Select Save.

Turn on debug logging for script handlers

Script handlers can use the script.args.<N> = debug setting in the restmap.conf file to turn on debug mode (N here is an integer). Please note that the scripttype setting must be set to "persist" for this to work.

You cannot currently edit script.args in the restmap.conf file through the GUI.

To turn on debug logging through the CLI, edit the restmap.conf file as follows:

## $SPLUNK_HOME/etc/apps/<app>/local/restmap.conf
[script:<script_handler_name>]
...
script.arg.<N> = debug
...

Turn on debug logging for scripted lookups

No UI or CLI methods are available for enabling debug logging of scripted lookups.

See also

For more information on debug logging, see the product documentation:

Last modified on 17 September, 2024
Pair Splunk Enterprise Security with Splunk SOAR   Log files in Splunk Enterprise Security

This documentation applies to the following versions of Splunk® Enterprise Security: 8.0.0


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters