Dashboards & Visualizations

Graphing results from a single search as separate data sets?

mphuie
New Member

I'm parsing web logs for the HTTP codes (200, 404, 500, etc). I have the search done which shows the number of each code in a specific time period.

I'd like to generate a graph over time (say per hour), with the number of each code found as a separate data set.

The search I'm using now is

sourcetype="iis*" | rex field=_raw "(?\d+) \d+ \d+$" | stats count by httpcode

Is this possible?

Tags (1)
0 Karma

fk319
Builder
sourcetype="iis*" | rex field=_raw "(?\d+) \d+ \d+$" | timechart span=1h count by httpcode
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...