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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...