|
My Splunk instance was working fine before I upgraded to 4.1.4, and now I'm seeing this message. My earlier question on the subject was answered, but I haven't made any changes to my indexes recently, why is this happening now? |
|
It's the same problem as answered on your other question - one of the indexes.conf files within your instance is referencing an index that Splunk doesn't know exists. In this case, it's the fault of a product change, which removed an old legacy index called In the pre-4.1.4 days, this index was established in |
|
During the first start up after the upgrade, Splunk tries to validate the existence of all declared indexes in the indexes.conf found in your configuration directories. Even if an index is disabled with "disabled = true" or by being present in the indexes.conf of a disabled app, Splunk will freak out if it cannot locate it's "homePath" (whether it's the default one in $SPLUNK_DB or a custom one specified in indexes.conf). The quickest way to troubleshoot this problem is to compare the output of two commands. The first one displays all existing index configuration stanzas across all indexes.conf :
The second command will list the directories present in $SPLUNK_DB ($SPLUNK_HOME/var/lib/splunk/ by default), which is the default "homePath" for each index if no other value for that parameter is specified.
or
If the first command shows an index that is not present in $SPLUNK_DB and that index doesn't have a setting for "homePath" that points to an existing directory, you should consider disabling that index stanza in that configuration file by preceding it with a "#". Typical culprits are "splunklogger" (which has been deprecated and is often present but disabled) and "os" (which is often present in disabled apps like "unix" or "nixLF"). This is particularly effective on a forwarder where there shouldn't be any indexes configured other than what can be found in $SPLUNK_DB. Here's a typical scenario : 1) Which index directories exist?
2) Which indexes are declared in the configuration files?
This revealed the following culprits :
The "splunklogger" index was disabled everywhere it was declared with "disabled = true", and the "os" index was not in use as the unix app was disabled. Once these stanzas and all of their associated parameters were commented out, the upgrade worked! |
