Dashboards & Visualizations

Highlight duplicate host value for hostfield

priya0709
Path Finder

I have a table which generates hosts with Event code 52 in last 24 hours, however my requirement is to highlight hosts which are repetitive eg:- hosts which are generating event code 52 from last 2,3 days or 1 week and also can I get a count of days from which host is generating event code 52

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
-- your search to find hosts with the event
| bin span=1d _time
| stats count by host, _time
| stats count by host

This will give the number of days within the search period that each host has the event

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
-- your search to find hosts with the event
| bin span=1d _time
| stats count by host, _time
| stats count by host

This will give the number of days within the search period that each host has the event

priya0709
Path Finder

My current attached query search for host which are generating event code 52 in last 24hours, but my requirement is to highlight hosts which are repetitively generating event code 52 from last 1 month.

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The "bin span=1mon ..." in your query will count for the month. What you want (as I suggested earlier) is "bin span=1d ..." so the count is per day. The second stats (in my suggestion) counts the number of days that each host has had the event. This is not based on _time so the bin has no effect. It will be based on the time period of your query. Change the timepicker to be the period you want to cover (not the bin command)

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