Knowledge Management

If the device removed from network then how i will get to know in splunk ??

raja8220
New Member

If the device removed from network or decommissioned then how i will get to know in splunk ??

0 Karma

ashutoshab
Communicator

You can get this done using 'tstats' command. You may run this search Every Hour, Every Day depending upon your requirement.
The below query is for any host that has not sent data for over an hour, you can change the value of 'diff>=3600' to suit your need and run a scheduled search. The 'tstats' command actually does require very less time to complete, it is blazing fast so no need to worry about performance impact.

|tstats latest(_time) as lat_time by host | eval NOW=now() | eval diff=NOW-lat_time | where diff>=3600 | table host
0 Karma

richgalloway
SplunkTrust
SplunkTrust

You will need a list of expected devices in a lookup file. Compare that file's contents to the current list of devices reporting to Splunk to find those that are missing.

---
If this reply helps you, Karma would be appreciated.
0 Karma

raja8220
New Member

How to do that I have file called sw.csv it contain the field host which contain all the IP address ??

0 Karma

richgalloway
SplunkTrust
SplunkTrust

This answer is old, but still works. https://answers.splunk.com/answers/337999/how-to-find-missing-hosts-andor-deployment-clients.html

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...