Splunk Dev

Why is my search to chart server errors per host over a 24 hour period not working?

synking
Explorer

Hey all,

I am trying to show all iis errors separated by host over a 24 hour period. But, when I run the below command, it completes and says it has 200,000 plus results, but nothing shows up in the graph. Can anyone assist?

Thanks.

host="**"  | chart list(host) over time by count(sc_status) span=1d
Tags (1)
0 Karma
1 Solution

synking
Explorer

I was able to get the results I wanted by using the below command.

|bin _time span=1d | chart sum(sc_status) list(sort(sc_status)) by host,sc_status

View solution in original post

synking
Explorer

I was able to get the results I wanted by using the below command.

|bin _time span=1d | chart sum(sc_status) list(sort(sc_status)) by host,sc_status

Vijeta
Influencer
host="*" | bin span=1d _time| stats count(sc_status)  as count by host sc_status
0 Karma

synking
Explorer

Thank you this gets me more than I was able to before. But the chart will only show one server. Is there a way to show all servers and separate the status by status type instead of total count

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...