Installation

Which folders under $SPLUNK_HOME/etc get written over during a Splunk Enterprise upgrade?

rholm01
Explorer

Which folders under $SPLUNK_HOME/etc get written over during a Splunk Enterprise upgrade? I am able to find the files under $SPLUNK_HOME/etc but those only show the .conf files, and I know that there are dashboards, saved searches, and views in XML files that can get walked over if they are not in a "safe" folder.

This is what I use to find the files with the note regarding losing files on updates:

find . -type f -exec grep -H "Changes to default files will be lost on update" 2> /dev/null {} \;
Labels (1)
0 Karma
1 Solution

woodcock
Esteemed Legend

You can run this command to see what is in the new splunk file:

tar tvf ./splunk*tgz | grep "splunk/etc/"

You can run this command to see what came from the current version:

grep "splunk/etc/" $(ls -altr /opt/splunk/splunk*manifest | tail -1 | awk '{print $NF}')

View solution in original post

0 Karma

woodcock
Esteemed Legend

You can run this command to see what is in the new splunk file:

tar tvf ./splunk*tgz | grep "splunk/etc/"

You can run this command to see what came from the current version:

grep "splunk/etc/" $(ls -altr /opt/splunk/splunk*manifest | tail -1 | awk '{print $NF}')
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Not all of the files that could be touched during an update have a warning comment in them.

In general, any file in a 'local' directory ($SPLUNK_HOME/etc/system/local/, $SPLUNK_HOME/etc/apps//local/*) are safe. Also safe are all files in apps you created and those in directories ("myauth" for your certificates, for example) you created. Third-party apps are also safe until they are upgraded.

---
If this reply helps you, Karma would be appreciated.
0 Karma

skoelpin
SplunkTrust
SplunkTrust

CONF files will usually live under /opt/splunk/etc/apps/<App-NAME>/

You will see default, local, web etc.. which is where the conf files live. When upgrading, all conf files under default will be updated while local conf files will remain untouched

0 Karma
Get Updates on the Splunk Community!

Splunk Search APIを使えば調査過程が残せます

   このゲストブログは、JCOM株式会社の情報セキュリティ本部・専任部長である渡辺慎太郎氏によって執筆されました。 Note: This article is published in both Japanese ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...