Splunk Search

All the numbers in the summary page went all weird (was: Corrupt MetaData?)

the_wolverine
Champion

Somehow, Splunk MetaData has become corrupt. My event counts are all off. What do I do?

Tags (1)
1 Solution

the_wolverine
Champion

If you have access to the filesystem, you can try forcing Splunk to rebuild the data files. There are 2 ways to do this:

1) Delete the the *.data files in $SPLUNK_HOME/var/lib/splunk/defaultdb/db/ (there should exist Hosts.data, Sources.data and SourceTypes.data files) and then Restart your Splunk instance.

2) cd to $SPLUNK_HOME/var/lib/splunk/defaultdb/db/ and 'touch meta.dirty'. Splunk should rebuild the *.data files within a few seconds. This method does not require a restart.

View solution in original post

jrodman
Splunk Employee
Splunk Employee

This question is really trying to say "All the numbers in the summary page went all weird".

the_wolverine
Champion

If you have access to the filesystem, you can try forcing Splunk to rebuild the data files. There are 2 ways to do this:

1) Delete the the *.data files in $SPLUNK_HOME/var/lib/splunk/defaultdb/db/ (there should exist Hosts.data, Sources.data and SourceTypes.data files) and then Restart your Splunk instance.

2) cd to $SPLUNK_HOME/var/lib/splunk/defaultdb/db/ and 'touch meta.dirty'. Splunk should rebuild the *.data files within a few seconds. This method does not require a restart.

hexx
Splunk Employee
Splunk Employee

Another, more manual method to rebuild bucket-level metadata files is to use the recover-metadata command. For details, see http://splunk-base.splunk.com/answers/5374/how-to-quickly-validate-the-metadata-files-of-a-given-ind...

Jason
Motivator

Note, if you update cold buckets, you still need to touch the meta.dirty file in the hot/warm directory, even if it is on a different filesystem. Touching meta.dirty in the cold folder has no effect.

Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...