Note: This feature is now available in the Splunk Enterprise Fall 2021 BETA
For years customers have leveraged the power of Splunk configuration files to customize their environments with flexibility and precision. And for years, we've enabled admins to customize things like system settings, deployment configurations, knowledge objects and saved searches to their hearts' content.
Unfortunately a side effect of this was that multiple team members could change underlying .conf files and forget that those changes ever occurred. Add up the myriad of configuration changes that can happen every day and you might encounter realities that are different than expected for any number of reasons.
These changes have never been natively tracked within Splunk, leading to confused team members and befuddled customer support reps. Don't you wish there was a way to track .conf file changes?
In the Splunk Enterprise Fall 2021 Beta (interested customers can apply here), users have access to a new internal index for configuration file changes called "_configaudit". The log files come from configuration_change.log which include .conf file changes related to the creation, updating, and deletion of .conf files in the monitored file paths.
Use Case #1: See Config File Changes in a Simple Table View
A simple table view with the following query can provide a fast way for users to understand what types of file paths, stanzas, and properties are changing within an environment:
index=_configaudit sourcetype="splunk_configuration_change" data.path=*server.conf
| spath output=modtime data.modtime,
| spath output=path data.path,
| spath output=stanza data.changes{}.stanza,
| spath output=name data.changes{}.properties{}.name,
| spath output=new_value data.changes{}.properties{}.new_value,
| spath output=old_value data.changes{}.properties{}.old_value,
| table modtime path name prop_name new_value old_valueUse Case #2: See Saved Search Changes
Below, you can see an example of how local configuration changes made in the UI are seamlessly translated to the underlying configuration files. Thus, a user changing the configuration settings with an existing alert can find these changes logged in the "_configaudit" index.
-
In the "Search & Reporting" App, navigate to the "Alerts" tab and on an existing alert click Edit > Edit Alert.
- In the "Frequency dropdown" section, change Run every day to Run every month.
- Change the Expires 72 hours option to Expires 56 hours.
- Change the "Trigger Conditions" section from is greater than 14 to is greater than 23.
- Click Save.
- Navigate to the "Search" tab and execute the following search: index= "_configaudit" sourcetype="splunk_configuration_change" data.path = "*savedsearches.conf"
- In your latest search result, expand the "changes" and "properties" sections to see the new and old values of your alert configurations.
Note: UI changes don't always map 1-to-1 with .conf file changes. For example a change of certain alert values to 24 hours may show up as null (instead of 24h) in the corresponding .conf file since it is interpreted as a default value in the filesystem. However, the .conf files changes themselves will always show up exactly as they changed in the _configaudit index.
Use Case #3: See Previous Troubleshooting AttemptsLastly, this new feature can be used to diagnose previous troubleshooting sessions. For example, a common troubleshooting tactic in the case of a blocked queue is to increase the queue size under indexes.conf. Although this may solve for a symptom in the short term, the actual root cause of the problem may still be lurking in the background. When the larger issue still manifests via new symptoms later on, a deeper investigation usually takes place. At this point, it's important for the admin or support representative to know what settings were previously tinkered with before. With Splunk's new config change audit feature, it's easy for admins or support reps to look back and understand if queue size settings were previously manipulated, and better yet, what queue size values were specifically attempted.
This same use case can be extended to a whole host of other configuration values like timeouts and concurrency limits just to name a few.
That's all folks! We can't wait for our customers to start leveraging the configuration change audit feature today. Please do leave any feedback or suggestions under "Enterprise Administration - Internal Logs" in the Splunk Ideas Portal.
Sign up for the BETA to:
-
Start using this feature today!
-
Access additional feature details like denylisting and throttling in the Splunk Configuration Change Audit document and the server.conf spec document.
-
Enjoy additional BETA features like "Ingest Actions" and "SmartStore for Microsoft Azure"
Attachments
- Original Link
- Original Document
- Permalink
Disclaimer
Splunk Inc. published this content on 23 November 2021 and is solely responsible for the information contained therein. Distributed by Public, unedited and unaltered, on 23 November 2021 16:39:03 UTC.