Splunk Enterprise

How to find bucket status

Praz_123
Communicator

How to find the bucket status in the CLI 

As I am using the below query :-
./splunk search "| dbinspect index=_internal span=1d"

Labels (2)
Tags (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

More words please.

What are you trying to achieve?

If you just want to list all buckets for a given index you can do something like this:

splunk search "| dbinspect index=_internal earliest=1 | table bucketId state"
0 Karma

Praz_123
Communicator

@PickleRick 

I need to get the result like the below shown as in image but while am running span=1d it shows error 

Praz_123_0-1738159593580.png

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

And how are we supposed to know what is the cause of this error when we don't know what error it is?

0 Karma

Praz_123
Communicator

@PickleRick 

Error - INFO: Cannot use span, bins on a remote storage index unless cached=f is specified (index "_internal").

0 Karma

PickleRick
SplunkTrust
SplunkTrust

This has nothing to do with the command being run from CLI.

It means that the index you're trying to dbinspect is a smartstore-enabled index and therefore you only can do limited dbinspect on it. See the docs on dbinspect command for details.

0 Karma

Praz_123
Communicator

@PickleRick 

But how can I get the data like below image 

Praz_123_0-1738214744917.png

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

As I said - read the dbinspect docs - specifically the section about the "cached" parameter. You can get that info but it will only pertain to the local copies of the buckets, not the cached metadata. Which makes sense since cached metadata only contains the general "boundaries" of the bucket, not its data distribution inside.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...