Splunk Search

Dashboard to check index filled or not.

vxroot
Loves-to-Learn

Hello guys, Splunk newbie here.

 

Hope someone can assist in my case, 

so index=*_whatever is expected to be filled with data in monthly basis, I want to create a dashboard that tracks whether which indexes are filled and which that are not so I can keep track and check which ones are empty and which ones are filled.

Thank you!!

Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

There are lot of already done Apps for this issue. Here is some links for those

Slackbot  17:08
There are a lot of options for finding hosts or sources that stop submitting events:
Meta Woot! https://splunkbase.splunk.com/app/2949/
TrackMe https://splunkbase.splunk.com/app/4621/
Broken Hosts App for Splunk https://splunkbase.splunk.com/app/3247/
Alerts for Splunk Admins ("ForwarderLevel" alerts) https://splunkbase.splunk.com/app/3796/
Monitoring Console https://docs.splunk.com/Documentation/Splunk/latest/DMC/Configureforwardermonitoring
Deployment Server https://docs.splunk.com/Documentation/DepMon/latest/DeployDepMon/Troubleshootyourdeployment#Forwarde...Some helpful posts:
https://lantern.splunk.com/hc/en-us/articles/360048503294-Hosts-logging-data-in-a-certain-timeframe
https://www.duanewaddle.com/proving-a-negative/

r. Ismo

SinghK
Builder

|rest /services/data/indexes/|fields title maxTotalDataSizeMB currentDBSizeMB
|eval indexStatus = if(currentDBSizeMB>1, "Data", "Empty")

inventsekar
SplunkTrust
SplunkTrust

Hi @vxroot ... this can be done in multiple ways.. 

metadata command can be simple and less cpu/memory intensive command, than counting manually with your style of command. 

 

let us know your how your dashboard preparation steps, you can try to include both styles and try to see which one suits you. thanks. 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

vxroot
Loves-to-Learn

I'm just looking to create a simple table that has two columns first column as Index_Name and second column that should have a checkmark or a cross where checkmark = index is filled and cross = index not filled. Can replace check mark and cross with Yes / No instead too, is that possible? 

 

0 Karma

SinghK
Builder

index=* |stats count by index should do the trick.

0 Karma

vxroot
Loves-to-Learn

Unfortunately that does not work, thanks though. 

0 Karma

SinghK
Builder

|rest /services/data/indexes/|table title maxTotalDataSizeMB currentDBSizeMB 

 

this will show all indexes and allocated size and used size. let me know if this works for you and if you need help modifying search.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...