Splunk Search

Chart to show only values in X axis label when span=1m and query running for 1 day.

arjit
Path Finder

Hi All,  

I have a requirement where I need to show only alternate X axis label when I am running a chart command: 

index=xyz  | bin _time span=1m| eval time1 = strftime(_time, "%d %b %H:%M")|chart count by time1. 

As th query is ran for entire day and span mentioned is 1 minute,  the x-axis label is not being displayed .  Is there any way we can just show only 4 to 5 dates in the x axis label? 

Thanks

Arjit  

 

Labels (1)
Tags (3)
0 Karma

spammenot66
Contributor

@arjit  what youre asking is not really a splunk item but rather a math question.

time is a unit of measure. I can't imagine any scenario where what you're asking would be advisable. If you need to show more than one measure of time on the x axis, then my suggestion would be to interpret the question differently.

x would be remain same unit of time

y would display your 4 dimensions measured the same based on the same set of time.

for example if you need to dipslay 4 activities for a specified time, then measure your 4 activities and how well it didi within the specified time.

I hope that makes sense

 

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...