Splunk Search

Forwarder Phone Home last day

mwdbhyat
Builder

Hi there,

How would I set up a table to find out which forwarders have not phoned home in the last day ? I am currently using this REST search for other related activity:

-index=_internal group=tcpin_connections | join hostname [| rest /services/deployment/server/clients splunk_server=* | eval lastPhoneHome=tostring(now()-lastPhoneHomeTime,"duration")

Thanks!

0 Karma

gcusello
SplunkTrust
SplunkTrust

You have to create a lookup (e.g.: Perimeter.csv) with all the servers of you perimeter (manually or with an outputlookup night batch) and use it to verify the connected forwarders, something like this:
| inputlookup Perimeter.csv | eval count=0 | eval host=upper(host) | append [ |metasearch index=_internal | eval host=upper(host)
| stats count by host ] | stats sum(count) AS Somma by host | rangemap field=Somma severe=0-0 low=1-1000000000 default=severe | table host range | sort host

using rangemap you can shot result with a graphic icon (see Dashboard Examples)

Bye.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

if you're satisfied of the answer, please, accept the answer.
Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...