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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...