<?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 How to get a timechart for two values, but not sort by the split-by field alphabetically? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-timechart-for-two-values-but-not-sort-by-the-split/m-p/238813#M70959</link>
    <description>&lt;P&gt;I'm trying to plot to two separate values against another value like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timechart avg(x) avg(y) by z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I want to limit the results to the top 5 values. The problem comes in when I use limit to achieve this. It will score z in alphabetical order (each field value z occurs the same amount of times as the rest). How can I get a timechart of these two values, limited to only the z values that have the greatest, x, y values? &lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2016 16:27:50 GMT</pubDate>
    <dc:creator>Skamensky</dc:creator>
    <dc:date>2016-07-06T16:27:50Z</dc:date>
    <item>
      <title>How to get a timechart for two values, but not sort by the split-by field alphabetically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-timechart-for-two-values-but-not-sort-by-the-split/m-p/238813#M70959</link>
      <description>&lt;P&gt;I'm trying to plot to two separate values against another value like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timechart avg(x) avg(y) by z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I want to limit the results to the top 5 values. The problem comes in when I use limit to achieve this. It will score z in alphabetical order (each field value z occurs the same amount of times as the rest). How can I get a timechart of these two values, limited to only the z values that have the greatest, x, y values? &lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 16:27:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-timechart-for-two-values-but-not-sort-by-the-split/m-p/238813#M70959</guid>
      <dc:creator>Skamensky</dc:creator>
      <dc:date>2016-07-06T16:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a timechart for two values, but not sort by the split-by field alphabetically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-timechart-for-two-values-but-not-sort-by-the-split/m-p/238814#M70960</link>
      <description>&lt;P&gt;Please give an example of what your desired result looks like and how that differs from timechart's default behaviour.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 17:29:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-timechart-for-two-values-but-not-sort-by-the-split/m-p/238814#M70960</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-07-06T17:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a timechart for two values, but not sort by the split-by field alphabetically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-timechart-for-two-values-but-not-sort-by-the-split/m-p/238815#M70961</link>
      <description>&lt;P&gt;For instance let say foo and bar have the highest values of x. I want to create a timechart of values x and y by z and I want to display the ones with top value.  &lt;/P&gt;

&lt;P&gt;If I do &lt;CODE&gt;Timechart x y by z limit=x&lt;/CODE&gt; it will instead return the z values that are first alphabetically and not ones that have highest x values.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 17:45:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-timechart-for-two-values-but-not-sort-by-the-split/m-p/238815#M70961</guid>
      <dc:creator>Skamensky</dc:creator>
      <dc:date>2016-07-06T17:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a timechart for two values, but not sort by the split-by field alphabetically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-timechart-for-two-values-but-not-sort-by-the-split/m-p/238816#M70962</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... |  bin _time as time | stats avg(bytes) as x avg(spent) as y by time z | sort z x y | streamstats window=6 count by z x y | where count&amp;lt;6 | chart values(x) as x values(y) as y over time by z  | eval time=strftime(time, "%x %X")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jul 2016 17:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-timechart-for-two-values-but-not-sort-by-the-split/m-p/238816#M70962</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-06T17:55:30Z</dc:date>
    </item>
  </channel>
</rss>

