Splunk Search

setting time range for x-axis

mdmaala
Communicator

hi! currently in my graph, I have in y-axis the indicator value and in x-axis the time duration for each colors, green yellow and red.

however, despite the varying duration, the sizes of the bars are still the same. what I want to achieve is that I want the sizes of the bars in the chart expand according to the duration.

for example, if green light is turned on for 25 mins and the yelllow light is for 3 mins the green bar should be longer than the yellow bar.

how will I do this?

i used the format option, but I can't seem to set the range for the x-axis.

I am really new to splunk so I really dont know what to do.

thank you so much!

Tags (1)
0 Karma

efavreau
Motivator

@mdmaala Please provide some screenshots with the search query to show what you have tried so far.

###

If this reply helps you, an upvote would be appreciated.
0 Karma

mdmaala
Communicator

alt text

here's the picture

0 Karma

mdmaala
Communicator

![![alt text][1]][1]

this is what i've done so far, what I want is that the length of the bars depends on the time duration

0 Karma

niketn
Legend

@mdmaala please upload the image to any image sharing site (ensure you mask out any sensitive info) and then add image here using the link to the image here on Splunk Answers by pressing the Image button <img> or sortcut ket Ctrl+G.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

nickhills
Ultra Champion

It maybe just me, but I can't see your image.
Can you share what the tabled data looks like?

If my comment helps, please give it a thumbs up!
0 Karma

mdmaala
Communicator

the tabled data looks like this @nickhillscpl

Duration | GREEN | Yellow | Red
00:00:10 1 0 0 ------ when the value is 1, the light is turned on, so this means that Green light was on for 10 seconds

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...