All Apps and Add-ons

How to create an alert if data fails to ingest ahead of time?

mockinator44
Splunk Employee
Splunk Employee

I know this may be backward but do we have the ability to create an alert if data ingest fails so I can know ahead of time 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @mockinator44,

as @PickleRick said: what do you mean with "data fails to ingest ahead of time"?

if you mean that a server stops to send data, you could create a lookup (called e.g. perimeter.csv and contaning one column called host) containing all the servers to monitor, then you could run something like this:

| metasearch index=_internal
| eval host=lower(host)
| stats count BY host
| append [ | imputlookup perimeter.csv | eval host=lower(host), count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @mockinator44,

as @PickleRick said: what do you mean with "data fails to ingest ahead of time"?

if you mean that a server stops to send data, you could create a lookup (called e.g. perimeter.csv and contaning one column called host) containing all the servers to monitor, then you could run something like this:

| metasearch index=_internal
| eval host=lower(host)
| stats count BY host
| append [ | imputlookup perimeter.csv | eval host=lower(host), count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0

Ciao.

Giuseppe

youngsuh
Contributor

this is very smart.  Here is something I'd build for Salesforce add-on using the same logic.

 

| metasearch index=_internal sourcetype=sfdc*
| stats count BY source
| append [ | inputlookup sfdc_sources.csv | fields source count ]
| stats sum(count) AS total BY source
| where total!=#
```# is base on type of inputs have configured for you enviornment.
Then send an alert ```

 

 

0 Karma

mockinator44
Splunk Employee
Splunk Employee

Thanks for the help this worked for the customer. Just to clarify and I typed to quickly. He just wanted to know ahead of time when receiving data fails. He did not want to find out later data was not coming in. Thank you for the detail. 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @mockinator44 ,

good for you, see next time!

Ciao and happy splunking.

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma

PickleRick
SplunkTrust
SplunkTrust

The main question is how do you define "data ingest fails". If you can define it, you'll probably know the answer yourself 😉

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

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

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...