Getting Data In

REST /services/data/indexes gives me the wrong numbers. How do I fix that?

asturt
Explorer

I have a report running the following search:

| REST /services/data/indexes | WHERE substr(title,1,1)!="_" | dedup title |table title totalEventCount currentDBSizeMB minTime maxTime |sort -totalEventCount -currentDBSizeMB title

Last Friday we upgraded to the most recent version of Splunk, and two days ago our admin team added storage on two Index servers. Now all but two of my indexes report as having only a single event in them. In fact, both totalEventCount and currentDBSizeMB return a value of 1 for all but two indexes. Even on the two indexes that do return higher counts, the numbers are MUCH lower than they should be. I don't know if the Splunk version upgrade or the addition of storage caused my counts to change. They may be completely unrelated.

My question is how can I fix the counts coming from the REST service?

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...