Getting Data In

How to get Forwarder Event Detection within a specific period of time?

cboillot
Contributor

We are trying to develop a solution that will allow us the ability to be notified when a forwarder has not sent an event within a specific period of time? We need to find a way to ensure our forwarders are sending log events.

Has anyone done something like this? What would be the best way to go about this?

0 Karma
1 Solution

adonio
Ultra Champion

hello there,

there are many solutions around it, and many answers here around this topic.
here is a quick and dirty solution i use:

| tstats count where index=_internal by host

that will let you know there is a connection since the forwarders always sends their internal logs, so you can run it and see if count is 0 in a period of time then you might want to check that forwarder
another way i report on last event seen from a forwarder is:

| tstats max(_time) as last_event where index=_internal by host
| eval now_time = now()
| eval event_secondes_ago = now_time - last_event

if you care about the data a forwarder sends to the data indexes, change index=_internal to index=*
you can go many ways from here

hope it helps

View solution in original post

0 Karma

adonio
Ultra Champion

hello there,

there are many solutions around it, and many answers here around this topic.
here is a quick and dirty solution i use:

| tstats count where index=_internal by host

that will let you know there is a connection since the forwarders always sends their internal logs, so you can run it and see if count is 0 in a period of time then you might want to check that forwarder
another way i report on last event seen from a forwarder is:

| tstats max(_time) as last_event where index=_internal by host
| eval now_time = now()
| eval event_secondes_ago = now_time - last_event

if you care about the data a forwarder sends to the data indexes, change index=_internal to index=*
you can go many ways from here

hope it helps

0 Karma
Get Updates on the Splunk Community!

How to send events & findings from AWS to Splunk using Amazon EventBridge

Amazon EventBridge is a serverless service that uses events to connect application components together, making ...

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...