Splunk Search

How to show a list that compare the thing which not show up in a csv file

phamxuantung
Communicator

So in detail, I have a dashboard that read log files to monitor the list of host's status which is UP or DOWN. But when some hosts are offline, then there would be no log file of their. I have a csv file that list out all the host name, and I want to compare the two list that I have, to have it show the offline hosts, which is the hosts name that show up in the csv file but not on the dashboard that I already have. 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
search
| dedup host
| append [| inputlookup csv | dedup host]
| stats count by host
| where count=1

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
search
| dedup host
| append [| inputlookup csv | dedup host]
| stats count by host
| where count=1
Get Updates on the Splunk Community!

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

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

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