All Apps and Add-ons

How do I update this S.o.S - Splunk on Splunk search to also get the IP address of the host?

pb0543
Explorer

I am using this search from SOS to find out the version, cpu, etc... Does anyone know how can update this search to provide me the IP address of the host also?

index=_internal source=*metrics.log* group=tcpin_connections | regex hostname!="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}" | eval sos_server=hostname | stats latest(build) AS build latest(arch) AS cpu_arch latest(fwdType) AS forwarder_type latest(os) AS os_name latest(version) AS version by sos_server

richgalloway
SplunkTrust
SplunkTrust

This works on my system.

index=_internal source="*/metrics.log" group=tcpin_connections | regex hostname!="d{1,3}.d{1,3}.d{1,3}.d{1,3}" | eval sos_server=hostname | stats latest(build) AS build latest(arch) AS cpu_arch latest(fwdType) AS forwarder_type latest(os) AS os_name latest(version) AS version latest(sourceIp) AS IP by sos_server
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...