Splunk Search

Scale Y axis for timechart

kkao00
Engager

Hi,

I run a real time query in splunk search during load testing, and it comes out like this:

http://picpaste.com/pics/splunk_timechart-vCg4doz1.1347913377.PNG
alt text

I'd like to be able to divide the y-axis by 60. So instead of 200/400/600/800 it'd be 3.33/6.66/10/etc. Can this be done?

The query is sourcetype="access-prod-wcs" useragent = "CLOUDTEST-SOASTA" OR useragent = "Lr-Perf" OrderProcessCmd | timechart count by sitefamily

Thanks

Tags (3)
0 Karma
1 Solution

melting
Splunk Employee
Splunk Employee

I think you just want to eval count to what you want

ex:
... | eval(count(source)/60)

So your search:
sourcetype="access-prod-wcs" useragent = "CLOUDTEST-SOASTA" OR useragent = "Lr-Perf" OrderProcessCmd | timechart eval(count(sitefamily)/60) by sitefamily

Other timechart commands:
CommonStatsFunctions

View solution in original post

melting
Splunk Employee
Splunk Employee

I think you just want to eval count to what you want

ex:
... | eval(count(source)/60)

So your search:
sourcetype="access-prod-wcs" useragent = "CLOUDTEST-SOASTA" OR useragent = "Lr-Perf" OrderProcessCmd | timechart eval(count(sitefamily)/60) by sitefamily

Other timechart commands:
CommonStatsFunctions

kkao00
Engager

Thank you!!!

0 Karma

melting
Splunk Employee
Splunk Employee

I edited my answer. I had an ever simplified version of your search. Take look at my edited answer.

kkao00
Engager

Didn't seem to work...Shows the same chart as the original query.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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