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. 

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!

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...