Refine your search:

Trying to put together a table that compares service versions across environments.

Able to get a list using stats

 stats first(version) by service, environment

Would like to have this same info organized as a table, tried

 chart first(version) by service, environment

but this doesn't return service versions like 1.2.31

Seems that chart only works with numbers - figure there must be some other way to build a table.

Thanks, Nancy

asked 11 May '10, 15:51

NancyCunningham's gravatar image

NancyCunningham
31113
accept rate: 0%

edited 11 May '10, 17:40

Johnvey's gravatar image

Johnvey
2.3k4619


2 Answers:

I don't think this is what it was designed for, but it turns out maketable does exactly what is needed.

search... | stats first(version) as version by environment service | maketable service environment version

link

answered 11 May '10, 17:37

vbumgarn's gravatar image

vbumgarn
6511317
accept rate: 9%

'maketable' is also known as 'xyseries'.

(11 May '10, 17:46) Johnvey

actually that is exactly what xyseries was intended for

(11 May '10, 22:27) gkanapathy ♦

That's right, timechart and chart do their best to only return numeric data, so first() and values() wont work as you might expect for non-numeric fields.

for more on that topic, see this related question: http://answers.splunk.com/questions/2295/how-come-some-fields-disappear-when-they-go-into-timechart-chart

So, you cant use chart, you have to use stats. And the xyseries command can convert the "stats output format", where each row is a unique combination, to what you might call the "chart output format" that's the 2-dimensional table that you want.

stats first(version) by service, environment | xyseries service, environment, first(version)
link

answered 11 May '10, 17:21

sideview's gravatar image

sideview ♦
25.6k4543
accept rate: 46%

edited 13 May '10, 04:17

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1,651
×254

Asked: 11 May '10, 15:51

Seen: 1,233 times

Last updated: 13 May '10, 04:17

Copyright © 2005-2012 Splunk Inc. All rights reserved.