Splunk Search

We have list of hots not logging lookup hosts list can any one help with search to search in splunk find out why they are not logging

Splunker6789
Explorer

We have list of hots not logging lookup hosts list can any one help with search to search in splunk find out why they are not logging

0 Karma
1 Solution

sbbadri
Motivator

Try this search on your DS,

|inputlookup dmc_forwarder_assets | search status="missing" | fields hostname os arch forwarder_type version last_connected status | rename hostname as Instance | eval now=now() | eval Duration_Not_Connected=now-last_connected | where Duration_Not_Connected<=2592000 | fields - last_connected now | sort Duration_Not_Connected | eval Duration_Not_Connected_Days = round(Duration_Not_Connected/86400,0)

View solution in original post

0 Karma

sbbadri
Motivator

Try this search on your DS,

|inputlookup dmc_forwarder_assets | search status="missing" | fields hostname os arch forwarder_type version last_connected status | rename hostname as Instance | eval now=now() | eval Duration_Not_Connected=now-last_connected | where Duration_Not_Connected<=2592000 | fields - last_connected now | sort Duration_Not_Connected | eval Duration_Not_Connected_Days = round(Duration_Not_Connected/86400,0)

0 Karma

Splunker6789
Explorer

Thanks ! sbbadri

0 Karma

woodcock
Esteemed Legend
0 Karma

Splunker6789
Explorer

Pardon me .What exactly I meant to ask is We have list of hosts not reporting in splunk .I am looking for best search to find out in UI why they are not reporting .

0 Karma

JDukeSplunk
Builder

I would start with this and see if they are even talking to the indexers at all.

index=_internal source=*splunkd.log host=(YOURHOST)

If this returns no results, there is no transmission. In that case, check the that the service is started, that the port is open. Then check the $splunkhome$/var/log/splunk/splunkd.log for clues.

If there is communication, chances are you don't have any apps in place in $splunkhome$/etc/apps.

Splunk is running, but hasn't been told what to do.

0 Karma

Splunker6789
Explorer

Thanks!jduke

0 Karma

woodcock
Esteemed Legend

Start with the links above. If you get hung up, add a comment here.

0 Karma
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...