Dashboards & Visualizations

How can I make a simple x over y chart

splunktrain9
Loves-to-Learn Everything

I have the following data, and I want a graph with the age as the x axis, and height as the y axis. name and value are fields pulled out of a "rex field=_raw" command.


namevalue

height

age

height

age

height 

age

height 

age

100

1

2

105

3

107

4

108

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It is not clear what sort of chart you want, and given the vagueness of your data, it is unclear what sort might be suitable.

Are all your ages unique i.e. is there a one-to-one relationship between age and height?

Are all these values from the same event or different events?

Have these values been extract (with rex?) into name and value fields?

Are there other values in the events with which can be used to split the data into different series? This isn't strictly required but it might help determine an appropriate solution.

Please provide more precise detail on what it is you are trying to do.

0 Karma

tshah-splunk
Splunk Employee
Splunk Employee

Hey @splunktrain9,

You can create a chart with functions like values() and group it by age field. These can be achieved since using rex also, the fields will be created and can be used in charts. Your query should look something like below:

<your query>
| chart values(height) as height by age

 

---
If you find the answer helpful, an upvote/karma is appreciated
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...