All Apps and Add-ons

Query help!

Adam1996
Engager

Hi!

I have a splunk setup with various indexes for different things.

im trying to create a single search which will identify any of my indexes that haven’t received any new data in say the past hour or something like that.

how could this be done?

Thank you!

Labels (1)
0 Karma

saravanan90
Contributor

This may help...

 

| rest /services/data/indexes | rename title AS index | dedup index | eval count=0 | table index count | join type=outer index [| tstats count where (index=* OR index=_*) by index ] |search NOT index IN("_telemetry","_thefishbucket") | stats sum(count) AS count by index | eval status = case(count=0, "missing", count>0, "active") | fields - count | where status="missing"

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

here is couple of answers for found host/sources which have stoped sending to splunk.

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

Adam1996
Engager

Thanks for the reply!

I'm looking for something that could be done specifically from the search box. Would that be possible?

0 Karma

isoutamo
SplunkTrust
SplunkTrust

e.g. this https://community.splunk.com/t5/Archive/Splunk-Universal-Forwarder-monitoring/m-p/304231/highlight/t... gives your a hint how you need to create perimeter.csv where you must first store all you used/monitored indexes. Then you can modify that query e.g. like

| metasearch index=*
| stats count by index
| append [ | inputlookup Perimeter.csv | eval count=0 | fields index count] 
| stats sum(count) AS Total by index 
| where Total=0 

 

r. Ismo 

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...