<?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: Aggregate query help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-query-help/m-p/560663#M159340</link>
    <description>&lt;P&gt;Thanks much&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;; it worked beautifully !&lt;/P&gt;&lt;P&gt;As a next step would like to showcase the result on dashboard, where from a drop down when we select a particular attribute it will show the count of total and RecordOutRange on y-axis in time span of every15min on x-axis. Something like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aag_0-1627079204142.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15215i7C5E38EB1DD0BA4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aag_0-1627079204142.png" alt="aag_0-1627079204142.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Helpful image from query showcasing all attributes in same graph:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aag_1-1627079605734.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15216iE7E22942B4598A99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aag_1-1627079605734.png" alt="aag_1-1627079605734.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 22:36:39 GMT</pubDate>
    <dc:creator>aag</dc:creator>
    <dc:date>2021-07-23T22:36:39Z</dc:date>
    <item>
      <title>Aggregate query help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-query-help/m-p/560526#M159292</link>
      <description>&lt;P&gt;Hi Team - I am trying to first search and&amp;nbsp; then aggregate results from following Splunk logs:&lt;/P&gt;&lt;P&gt;Raw format:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"buildDimensionsAttributes:  &lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;attribute&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;SPAN&gt;constraint&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;SPAN&gt;result&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="key level-1"&gt;&lt;SPAN class="key-name"&gt;sample message:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="key level-1"&gt;&lt;SPAN class="key-name"&gt;message&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t string h selected-segment"&gt;buildDimensionsAttributes: 6393: AttributeConstraints(-1.0,99.92,2,DoubleFormat): 99.98&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Here in the AttributeConstraints&lt;/P&gt;&lt;P&gt;1st index&lt;SPAN class="key level-1"&gt;&lt;SPAN class="t string h selected-segment"&gt;&amp;nbsp;corresponds to minval here -1.0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key level-1"&gt;&lt;SPAN class="t string h selected-segment"&gt;2nd index&amp;nbsp;corresponds to maxval here 99.92&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key level-1"&gt;&lt;SPAN class="t string h selected-segment"&gt;3rd index&amp;nbsp;corresponds to decimal here 2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key level-1"&gt;&lt;SPAN class="t string h selected-segment"&gt;I want to first filter $results which are out of range, here 99.98 is not between&amp;nbsp; [-1.0 , 99.92] and then&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key level-1"&gt;&lt;SPAN class="t string h selected-segment"&gt;aggregate (group by) various&amp;nbsp;&lt;SPAN&gt;$&lt;/SPAN&gt;attribute and then&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key level-1"&gt;&lt;SPAN class="t string h selected-segment"&gt;showcase something like below on the dashboard where we can apply our usual time filters.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Attribute# | RecrdCountofOutofRange | TotalRecords&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="key level-1"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key level-1"&gt;AG&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 20:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Aggregate-query-help/m-p/560526#M159292</guid>
      <dc:creator>aag</dc:creator>
      <dc:date>2021-07-22T20:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate query help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-query-help/m-p/560545#M159301</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236726"&gt;@aag&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if this helps!.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_Search_goes_here&amp;gt;
| rex "buildDimensionsAttributes:\s+(?&amp;lt;attr&amp;gt;\d+):\s+AttributeConstraints\((?&amp;lt;idx1&amp;gt;.+?),(?&amp;lt;idx2&amp;gt;.+?),(?&amp;lt;idx3&amp;gt;.+?),.+?\):\s+(?&amp;lt;number&amp;gt;[\d\.]+)" 
| stats count as total, count(eval(number &amp;lt; idx1 OR number &amp;gt; idx2 )) as RecordOutRange by attr&lt;/LI-CODE&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if this reply helps and Accept solution!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 02:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Aggregate-query-help/m-p/560545#M159301</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-23T02:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate query help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-query-help/m-p/560663#M159340</link>
      <description>&lt;P&gt;Thanks much&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;; it worked beautifully !&lt;/P&gt;&lt;P&gt;As a next step would like to showcase the result on dashboard, where from a drop down when we select a particular attribute it will show the count of total and RecordOutRange on y-axis in time span of every15min on x-axis. Something like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aag_0-1627079204142.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15215i7C5E38EB1DD0BA4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aag_0-1627079204142.png" alt="aag_0-1627079204142.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Helpful image from query showcasing all attributes in same graph:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aag_1-1627079605734.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15216iE7E22942B4598A99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aag_1-1627079605734.png" alt="aag_1-1627079605734.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 22:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Aggregate-query-help/m-p/560663#M159340</guid>
      <dc:creator>aag</dc:creator>
      <dc:date>2021-07-23T22:36:39Z</dc:date>
    </item>
  </channel>
</rss>

