<?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 Re: grouping data in search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45265#M10714</link>
    <description>&lt;P&gt;Thanks Kristian! This worked. I tweaked it a bit because I hadn't put my question clearly, but your syntax worked. Here is what I ended up with:&lt;BR /&gt;
...| timechart c(eval(status&amp;gt;400)) AS FAILURE c(eval(status&amp;lt;=400)) AS SUCCESS&lt;/P&gt;</description>
    <pubDate>Tue, 08 May 2012 19:08:25 GMT</pubDate>
    <dc:creator>joegrossman</dc:creator>
    <dc:date>2012-05-08T19:08:25Z</dc:date>
    <item>
      <title>grouping data in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45262#M10711</link>
      <description>&lt;P&gt;I am serching a log that has statuses. When I run the search and chart it, I get a bar for each status. There are, say, 10 statuses. Instead, I want to group the data into 2 results: one result is the count of status &amp;lt; 400, and the other is the count of status &amp;gt;= 400. Any idea how I get this?&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 00:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45262#M10711</guid>
      <dc:creator>joegrossman</dc:creator>
      <dc:date>2012-05-08T00:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: grouping data in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45263#M10712</link>
      <description>&lt;P&gt;Can you please paste the search you are currently using to do this? &lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 01:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45263#M10712</guid>
      <dc:creator>mwhite_splunk</dc:creator>
      <dc:date>2012-05-08T01:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: grouping data in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45264#M10713</link>
      <description>&lt;P&gt;Like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   ... | stats c(eval(status&amp;lt;400)) AS low c(eval(status&amp;gt;=400)) AS high 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please note that you need to rename the fields with AS like above.&lt;/P&gt;

&lt;P&gt;EDIT: changed so that the exact value of 400 would be counted as 'high'.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 07:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45264#M10713</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-05-08T07:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: grouping data in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45265#M10714</link>
      <description>&lt;P&gt;Thanks Kristian! This worked. I tweaked it a bit because I hadn't put my question clearly, but your syntax worked. Here is what I ended up with:&lt;BR /&gt;
...| timechart c(eval(status&amp;gt;400)) AS FAILURE c(eval(status&amp;lt;=400)) AS SUCCESS&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 19:08:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45265#M10714</guid>
      <dc:creator>joegrossman</dc:creator>
      <dc:date>2012-05-08T19:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: grouping data in search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45266#M10715</link>
      <description>&lt;P&gt;Good to hear. Please mark as answered and/or upvote. Thanks, Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 19:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/grouping-data-in-search/m-p/45266#M10715</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-05-08T19:13:51Z</dc:date>
    </item>
  </channel>
</rss>

