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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...