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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...