Dashboards & Visualizations

splunk 6.1.2 + using sparkline and naming the column headers

HattrickNZ
Motivator

I have the following search, search1:

...| chart avg(c84150606) as "avg(CONNECTED_RATIO)" sparkline(avg(CONNECTED_RATIO), 15m) as CONNECTED_RATIO by userLabel

this gives me this stats1 in the stats tab, but the sparkline is not showing:

userLabel   avg(CONNECTED_RATIO)    CONNECTED_RATIO
MSC01HAM    91.138624    <SPARK_LINE_NOT_SHOWING>
MSCKPR  84.608529    <SPARK_LINE_NOT_SHOWING>

with this search search2

...| chart avg(c84150606) sparkline(avg(c84150606), 15m) as CONNECTED_RATIO by userLabel

I can get the sparkline to show in stats2 in the stats tab

userLabel   avg(c84150606)  CONNECTED_RATIO
MSC01HAM    91.138624   <SPARK_LINE_IS_SHOWING>
MSCKPR  84.608529   <SPARK_LINE_IS_SHOWING>

but I in stats2 I want the 2nd column header avg(c84150606) to be avg(CONNECTED_RATIO).

How can I achieve this?

0 Karma
1 Solution

ppablo
Retired

You can also try using the rename command:

...| chart avg(c84150606) sparkline(avg(c84150606), 15m) as CONNECTED_RATIO by userLabel | rename avg(c84150606) as avg(CONNECTED_RATIO)

http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Rename

View solution in original post

0 Karma

ppablo
Retired

You can also try using the rename command:

...| chart avg(c84150606) sparkline(avg(c84150606), 15m) as CONNECTED_RATIO by userLabel | rename avg(c84150606) as avg(CONNECTED_RATIO)

http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Rename

0 Karma

HattrickNZ
Motivator

thanks, tried rename every which way but that way 🙂 you should edit your answer so i can accpet it or can i accept it as is?

ppablo
Retired

Hey @HattrickNZ

Sorry I just revisited this post again now. I converted the comment to an answer for acceptability 🙂 cheers and happy Friday!

Patrick

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 ...