<?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: How do you use a range with the where command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384174#M112212</link>
    <description>&lt;P&gt;See the &lt;CODE&gt;bin&lt;/CODE&gt; command.  &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Bin"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Bin&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | bin TotalNoOfThreadsInGroup span=25
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternately, you could do plain math... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval TotalNoOfThreadsInGroup = 25*ceiling(TotalNoOfThreadsInGroup/25.00)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Sep 2018 00:43:32 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2018-09-18T00:43:32Z</dc:date>
    <item>
      <title>How do you use a range with the where command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384171#M112209</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;TransactionName=WPP* | stats count(TransactionStatus) as TOTAL count(eval(TransactionStatus == "true")) as SUCCESS  count(eval(TransactionStatus == "false")) as FAILURE by TotalNoOfThreadsInGroup | where  TotalNoOfThreadsInGroup=25 OR TotalNoOfThreadsInGroup=50 OR TotalNoOfThreadsInGroup=75
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above query gives the data for Thread groups 25,50,75 in each row.&lt;/P&gt;

&lt;P&gt;Ideally,  the data i need should be like Threadgroup 1 to 25 as one row , 25 to 50 as another and 50 to 75 so on.&lt;/P&gt;

&lt;P&gt;Any Insight will be helpful.&lt;/P&gt;

&lt;P&gt;Thanks for looking.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5809i44EC6D37A2D4CE06/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 20:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384171#M112209</guid>
      <dc:creator>rsm1444</dc:creator>
      <dc:date>2018-09-17T20:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use a range with the where command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384172#M112210</link>
      <description>&lt;P&gt;Hi rsm1444,&lt;/P&gt;

&lt;P&gt;have you tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    TransactionName=WPP* 
   | stats count(TransactionStatus) as TOTAL count(eval(TransactionStatus == "true")) as SUCCESS  count(eval(TransactionStatus == "false")) as FAILURE by TotalNoOfThreadsInGroup 
   | where  (TotalNoOfThreadsInGroup&amp;gt;=1 OR TotalNoOfThreadsInGroup&amp;lt;=25) OR (TotalNoOfThreadsInGroup&amp;gt;=26 OR TotalNoOfThreadsInGroup&amp;lt;=50)  OR (TotalNoOfThreadsInGroup&amp;gt;=51 OR TotalNoOfThreadsInGroup&amp;lt;=75)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that this does not overlap the thresholds like you asked for. &lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 20:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384172#M112210</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-09-17T20:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use a range with the where command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384173#M112211</link>
      <description>&lt;P&gt;Hi Mus,&lt;/P&gt;

&lt;P&gt;Thanks for the response. but Each threadgroup is showing up as 1 row. I need thread groups 1 to 25 consolidate  to 1 row and 25 to 50 to another row and so on. Shown below is the attachment with the updated query you provided.&lt;/P&gt;

&lt;P&gt;Incase if you can't see the screen shot below. Please use the link&lt;/P&gt;

&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1kcRez42vRb6ysb-kuDPoNqjRHW-ADosc/view?usp=sharing"&gt;https://drive.google.com/file/d/1kcRez42vRb6ysb-kuDPoNqjRHW-ADosc/view?usp=sharing&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://drive.google.com/file/d/1kcRez42vRb6ysb-kuDPoNqjRHW-ADosc/view?usp=sharing" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 20:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384173#M112211</guid>
      <dc:creator>rsm1444</dc:creator>
      <dc:date>2018-09-17T20:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use a range with the where command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384174#M112212</link>
      <description>&lt;P&gt;See the &lt;CODE&gt;bin&lt;/CODE&gt; command.  &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Bin"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Bin&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | bin TotalNoOfThreadsInGroup span=25
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternately, you could do plain math... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval TotalNoOfThreadsInGroup = 25*ceiling(TotalNoOfThreadsInGroup/25.00)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Sep 2018 00:43:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384174#M112212</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-09-18T00:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use a range with the where command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384175#M112213</link>
      <description>&lt;P&gt;okay, got the question wrong. Look at the options @DalJeanis posted below vvv - I reckon &lt;CODE&gt;bin&lt;/CODE&gt; will be the best option.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 01:20:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384175#M112213</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-09-18T01:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use a range with the where command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384176#M112214</link>
      <description>&lt;P&gt;Hi DalJeanis ,&lt;/P&gt;

&lt;P&gt;Thanks for the help&lt;/P&gt;

&lt;P&gt;Tried both options, Its still Not consolidating the data &lt;BR /&gt;
 Here is the screenshot with the bin option " bin TotalNoOfThreadsInGroup span=25" All 0-25 should consolidate to a single row&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5808iB5E80B1C33126C86/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Since i don't have privileges to respond you with the image. I am replying here.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 01:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-use-a-range-with-the-where-command/m-p/384176#M112214</guid>
      <dc:creator>rsm1444</dc:creator>
      <dc:date>2018-09-18T01:33:16Z</dc:date>
    </item>
  </channel>
</rss>

