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 the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...