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!

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 ...