Security

Checking if device is communication with Splunk given IP or hostname

waJesu
Path Finder

I am very new to Splunk administration. Would anyone help me with a simple search to check if a particular device is reporting to splunk, given it's IP address and/or it's hostname.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

If the device has a Universal Forwarder on it then you can search the internal index for the IP/hostname in question.

index=_internal TERM(ip address)

index=_internal "host name"

If the device does not have a UF on it then you can search your other indexes for the host.

| tstats latest(_time) as time where index=* host="host name"

Use a specific index name in place of * if you know which index has the host's data.

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

waJesu
Path Finder

Oh I had only tried using host name. The IP one is not returning results.

0 Karma

waJesu
Path Finder

Thank you. This was very helpful. Maybe the follow up question would be how to trouble shoot why a device is not communicating.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

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

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...