Getting Data In

How can I find a listing of all universal forwarders that I have in my Splunk environment?

johannterc
New Member

Hello. How can I find a listing of all universal forwarders that I have in my Splunk environment?

0 Karma
1 Solution

masonmorales
Influencer

Here's what I would use:

index=_internal source=*metrics.log* group=tcpin_connections os=* uf  | eval os=os." ".arch | eval version=version." (".build.")" | stats latest(fwdType) AS forwarder_type latest(os) AS os latest(version) AS version by hostname | rename hostname as splunk_forwarder | replace uf with "Universal", full with "Full" in forwarder_type | rename splunk_forwarder as "Splunk Forwarder", forwarder_type as "Forwarder Type", os as "Operating System", version as Version

View solution in original post

jkat54
SplunkTrust
SplunkTrust

| metadata type=hosts | search NOT [ search index=_internal | fields splunk_server | dedup splunk_server | format ]

I feel like there is a field in '| metadata type=hosts' which specifies if it's a forwarder
Or not but the search above might work too.

0 Karma

ddrillic
Ultra Champion

How does your serverclass.conf look on the deployment server? My favorite place ; -)

0 Karma

masonmorales
Influencer

Here's what I would use:

index=_internal source=*metrics.log* group=tcpin_connections os=* uf  | eval os=os." ".arch | eval version=version." (".build.")" | stats latest(fwdType) AS forwarder_type latest(os) AS os latest(version) AS version by hostname | rename hostname as splunk_forwarder | replace uf with "Universal", full with "Full" in forwarder_type | rename splunk_forwarder as "Splunk Forwarder", forwarder_type as "Forwarder Type", os as "Operating System", version as Version

skoelpin
SplunkTrust
SplunkTrust

Try this

index=_internal source=*metrics.log group=tcpin_connections
| eval sourceHost=if(isnull(hostname), sourceHost,hostname)

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...