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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...