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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...