<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Non-numerical values in a table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13248#M1201</link>
    <description>&lt;P&gt;Trying to put together a table that compares service versions across environments. &lt;/P&gt;

&lt;P&gt;Able to get a list using stats&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; stats first(version) by service, environment
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would like to have this same info organized as a table, tried&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; chart first(version) by service, environment
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but this doesn't return service versions like 1.2.31&lt;/P&gt;

&lt;P&gt;Seems that chart only works with numbers - figure there must be some other way to build a table.&lt;/P&gt;

&lt;P&gt;Thanks,
Nancy&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2010 22:51:24 GMT</pubDate>
    <dc:creator>NancyCunningham</dc:creator>
    <dc:date>2010-05-11T22:51:24Z</dc:date>
    <item>
      <title>Non-numerical values in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13248#M1201</link>
      <description>&lt;P&gt;Trying to put together a table that compares service versions across environments. &lt;/P&gt;

&lt;P&gt;Able to get a list using stats&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; stats first(version) by service, environment
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would like to have this same info organized as a table, tried&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; chart first(version) by service, environment
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but this doesn't return service versions like 1.2.31&lt;/P&gt;

&lt;P&gt;Seems that chart only works with numbers - figure there must be some other way to build a table.&lt;/P&gt;

&lt;P&gt;Thanks,
Nancy&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2010 22:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13248#M1201</guid>
      <dc:creator>NancyCunningham</dc:creator>
      <dc:date>2010-05-11T22:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Non-numerical values in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13249#M1202</link>
      <description>&lt;P&gt;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. &lt;/P&gt;

&lt;P&gt;for more on that topic, see this related question: 
&lt;A href="http://answers.splunk.com/questions/2295/how-come-some-fields-disappear-when-they-go-into-timechart-chart" rel="nofollow"&gt;http://answers.splunk.com/questions/2295/how-come-some-fields-disappear-when-they-go-into-timechart-chart&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;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. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats first(version) by service, environment | xyseries service, environment, first(version)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 May 2010 00:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13249#M1202</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-05-12T00:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Non-numerical values in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13250#M1203</link>
      <description>&lt;P&gt;I don't think this is what it was designed for, but it turns out maketable does exactly what is needed.&lt;/P&gt;

&lt;P&gt;search... | stats first(version) as version by environment service | maketable service environment version&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2010 00:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13250#M1203</guid>
      <dc:creator>vbumgarn</dc:creator>
      <dc:date>2010-05-12T00:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Non-numerical values in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13251#M1204</link>
      <description>&lt;P&gt;'maketable' is also known as 'xyseries'.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2010 00:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13251#M1204</guid>
      <dc:creator>Johnvey</dc:creator>
      <dc:date>2010-05-12T00:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Non-numerical values in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13252#M1205</link>
      <description>&lt;P&gt;actually that is exactly what &lt;CODE&gt;xyseries&lt;/CODE&gt; was intended for&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2010 05:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Non-numerical-values-in-a-table/m-p/13252#M1205</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-05-12T05:27:15Z</dc:date>
    </item>
  </channel>
</rss>

