Open arcsector opened 1 year ago
Made some changes to put the unfound items at the top of the file. Note that even if you set the file correctly, and the REST API shows you have set the log level correctly at /services/server/logger
, Splunk still refuses to log at DEBUG for certain components (noticing this on an indexer with components HttpInputQueue
, STMgr
, TcpInputProc
, and a couple other tests, but other components do work with this method like HttpInputDataHandler
... Cmon Splunk!)
@arcsector
splunk set log-level
is not persistent, and is only used to change the level on a running instance temporarily.
Summary
Changes the log-level at the CLI level, then makes sure
log-local.cfg
exists, and adds or modifies the the log level in there. Requires the variablessplunk_component
andsplunk_component_log_level
provided to the task.Modified files
roles/tasks/adhoc_change_log_level.yml
README.md