Splunk Search

How to create a line chart with one line per value of a field?

wadesworld
Engager

Given the following snippets of log statements:

src=feed value=5
src=calc value=37
src=feed value=20
src=calc value=50
src=calc value=55
src=feed value=12

I want to create a line chart with one line showing the values when src=feed, and the other line showing the values when src=calc, but I'm not sure how to tell chart "chart these values if src=feed on this line"

I'm sure it's an extremely simple solution but being new to Splunk, it's not jumping out at me.

0 Karma
1 Solution

jluo_splunk
Splunk Employee
Splunk Employee

If you are plotting these two lines over time, you could use a timechart.

... | timechart values(value) by src

View solution in original post

0 Karma

jluo_splunk
Splunk Employee
Splunk Employee

If you are plotting these two lines over time, you could use a timechart.

... | timechart values(value) by src

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