Dashboards & Visualizations

Chart on splunk dashboard

tsm0099
Explorer

Hello,

I want to create a line/bar chart with some data in a table.

example:

I have data in tabular form as mentioned below :-

column1(string)   |    column2(num)  | cloumn3(time)

X1                              |   12                            | time

X2                              |   9                              | time

X1                              |   10                           | time

X1                              |   5                              | time

X2                              |   15                           | time

 

I want to create a line graph with time at X-axis and column2 at Y-axis

I want two lines in the graph. One for X1 and one for X2. And when I hover on the line it should indicate if the line is for X1 or X2.

 

Can someone please help me write the search query for this requirement?

 

Thanks in advance

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Perhaps this will get you started

<your search that produces the table>
| rename cloumn3 as _time
| timechart max(column2) as column2 by column1
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Perhaps this will get you started

<your search that produces the table>
| rename cloumn3 as _time
| timechart max(column2) as column2 by column1
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...