Splunk Search

Break out search results by host

DFresh4130
Path Finder

I'm currently searching all of my jboss.out logs for SQLState. How can I break out the results with number of errors per host instead of a combined value? It'd be great if I can also have a graph created that's an overlay type which visualizes how many of those errors per host on top of each other for the same time period. Below is the query I have so far:

index="itdev" host="xxxxx*" source="/var/log/jboss/jboss.out" "SQLState" | sort - count

Tags (1)
0 Karma
1 Solution

gkanapathy
Splunk Employee
Splunk Employee
index="itdev" host="xxxxx*" source="/var/log/jboss/jboss.out" "SQLState" | stats count by host

View solution in original post

0 Karma

gkanapathy
Splunk Employee
Splunk Employee
index="itdev" host="xxxxx*" source="/var/log/jboss/jboss.out" "SQLState" | stats count by host
0 Karma

lguinn2
Legend

And for the graph:

index="itdev" host="xxxxx*" source="/var/log/jboss/jboss.out" "SQLState" | timechart count by host

Put them together in a dashboard, maybe

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...