Installation

Indexed volume search shows results only for the past month

thipsz
Explorer

Hello, Various search queries found here at Splunk Answers can provide index volume information. Several of them that I tried seem to never provide any results from time period prior to 1 month ago. Is there a way to find out why? Searching for data older than 1 month works fine.

Update: Looks like index volume information is limited to earliest event in _thefishbucket index. That's not the case.

Tags (3)
1 Solution

chris
Motivator

Hi Thipsz

The queries in the search application are based on the _internal index which only keeps Data for a limited amount of time.

You can see what the period is set to by looking at the indexes.conf file in $SPLUNK_HOME/etc/system/default

[_internal]
homePath = $SPLUNK_DB/_internaldb/db
coldPath = $SPLUNK_DB/_internaldb/colddb
thawedPath = $SPLUNK_DB/_internaldb/thaweddb
maxDataSize = 100
frozenTimePeriodInSecs = 2419200

The relevant parameter is frozenTimePeriodInSecs

You can override the value by inserting the following in the local indexes.conf ($SPLUNK_HOME/etc/system/local/indexes.conf)

[_internal]
maxDataSize = <Possibly more than 100 MB>
frozenTimePeriodInSecs = <your desired period>

It is probably better to use summary indexing a suggested by the following answer: http://answers.splunk.com/questions/5299/year-to-date-splunk-license-bandwidth-usage

I hope this helps

Chris

View solution in original post

0 Karma

thipsz
Explorer

Hi Crhis, Thx for the info and link, it provides what I'm looking for. We're utilizing distributed search and the below query pulls information from peers as well. We've tried localop to limit query to local server, it doesn't work. Is there a way to limit license usage information to one splunk instance?

| file /opt/splunk/var/log/splunk/license_audit.log | localop | search LicenseManager-Audit todaysBytesIndexed | kv | eval totalGB=todaysBytesIndexed/1024/1024/1024 | timechart sum(totalGB)
0 Karma

chris
Motivator
0 Karma

chris
Motivator

You can try this: index=_internal LicenseManager-Audit todaysBytesIndexed host=xyz | kv | eval totalGB=todaysBytesIndexed/1024/1024/1024 | timechart sum(totalGB) by host if you know which host you want to look at

0 Karma

chris
Motivator

Hi Thipsz

The queries in the search application are based on the _internal index which only keeps Data for a limited amount of time.

You can see what the period is set to by looking at the indexes.conf file in $SPLUNK_HOME/etc/system/default

[_internal]
homePath = $SPLUNK_DB/_internaldb/db
coldPath = $SPLUNK_DB/_internaldb/colddb
thawedPath = $SPLUNK_DB/_internaldb/thaweddb
maxDataSize = 100
frozenTimePeriodInSecs = 2419200

The relevant parameter is frozenTimePeriodInSecs

You can override the value by inserting the following in the local indexes.conf ($SPLUNK_HOME/etc/system/local/indexes.conf)

[_internal]
maxDataSize = <Possibly more than 100 MB>
frozenTimePeriodInSecs = <your desired period>

It is probably better to use summary indexing a suggested by the following answer: http://answers.splunk.com/questions/5299/year-to-date-splunk-license-bandwidth-usage

I hope this helps

Chris

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...