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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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