<?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 display/access parameters after grouping? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-access-parameters-after-grouping/m-p/611807#M212700</link>
    <description>&lt;P&gt;For example I have getting splunk logs with 4 fields&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Time&lt;/TD&gt;&lt;TD width="50%"&gt;Event&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;time 1&lt;/TD&gt;&lt;TD width="50%"&gt;service = "service1"&amp;nbsp; | operation = "sampleOperation1" | responseTime = "10" | requestId = "sampleRequestId1"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;time2&lt;/TD&gt;&lt;TD width="50%"&gt;service = "service2"&amp;nbsp; | operation = "sampleOperation2" | responseTime = "60" | requestId = "sampleRequestId2"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;time3&lt;/TD&gt;&lt;TD width="50%"&gt;service = "service2"&amp;nbsp; | operation = "sampleOperation2" | responseTime = "60" | requestId = "uniqueRequestId3"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;time4&lt;/TD&gt;&lt;TD width="50%"&gt;service = "service4"&amp;nbsp; | operation = "sampleOperation4" | responseTime = "30" | requestId = "sampleRequestId4"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective is to find from all the logs if count is greater then 20 for&amp;nbsp; combination of (service,operation) with reponseTime&amp;gt;40.&lt;/P&gt;&lt;P&gt;Expected Output&lt;/P&gt;&lt;P&gt;service1&amp;nbsp; operation1&amp;nbsp; [sampleRequestId2,uniqueRequestId3]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The query I have for now is&lt;/P&gt;&lt;P&gt;search here......&lt;/P&gt;&lt;P&gt;| stats count(eval(responseTime&amp;gt;60)) as reponseCount&lt;BR /&gt;by service, operation&lt;BR /&gt;| eval title= case(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match(service,"service2") AND reponseCount&amp;gt;20, "alert1",&lt;BR /&gt;)&lt;BR /&gt;| search title=*&lt;BR /&gt;| table title,service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here I cannot refer to requestId which is being dropped. Please suggest if you any solution.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 18:14:04 GMT</pubDate>
    <dc:creator>KAKA</dc:creator>
    <dc:date>2022-09-02T18:14:04Z</dc:date>
    <item>
      <title>How to display/access parameters after grouping?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-access-parameters-after-grouping/m-p/611807#M212700</link>
      <description>&lt;P&gt;For example I have getting splunk logs with 4 fields&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Time&lt;/TD&gt;&lt;TD width="50%"&gt;Event&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;time 1&lt;/TD&gt;&lt;TD width="50%"&gt;service = "service1"&amp;nbsp; | operation = "sampleOperation1" | responseTime = "10" | requestId = "sampleRequestId1"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;time2&lt;/TD&gt;&lt;TD width="50%"&gt;service = "service2"&amp;nbsp; | operation = "sampleOperation2" | responseTime = "60" | requestId = "sampleRequestId2"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;time3&lt;/TD&gt;&lt;TD width="50%"&gt;service = "service2"&amp;nbsp; | operation = "sampleOperation2" | responseTime = "60" | requestId = "uniqueRequestId3"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;time4&lt;/TD&gt;&lt;TD width="50%"&gt;service = "service4"&amp;nbsp; | operation = "sampleOperation4" | responseTime = "30" | requestId = "sampleRequestId4"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective is to find from all the logs if count is greater then 20 for&amp;nbsp; combination of (service,operation) with reponseTime&amp;gt;40.&lt;/P&gt;&lt;P&gt;Expected Output&lt;/P&gt;&lt;P&gt;service1&amp;nbsp; operation1&amp;nbsp; [sampleRequestId2,uniqueRequestId3]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The query I have for now is&lt;/P&gt;&lt;P&gt;search here......&lt;/P&gt;&lt;P&gt;| stats count(eval(responseTime&amp;gt;60)) as reponseCount&lt;BR /&gt;by service, operation&lt;BR /&gt;| eval title= case(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match(service,"service2") AND reponseCount&amp;gt;20, "alert1",&lt;BR /&gt;)&lt;BR /&gt;| search title=*&lt;BR /&gt;| table title,service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here I cannot refer to requestId which is being dropped. Please suggest if you any solution.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 18:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-access-parameters-after-grouping/m-p/611807#M212700</guid>
      <dc:creator>KAKA</dc:creator>
      <dc:date>2022-09-02T18:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to display/access parameters after grouping?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-access-parameters-after-grouping/m-p/611808#M212701</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats count(eval(responseTime&amp;gt;40)) as responseCount
by service, operation
| where responseCount &amp;gt; 20 AND responseTime &amp;gt; 40&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Sep 2022 19:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-access-parameters-after-grouping/m-p/611808#M212701</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-09-02T19:05:45Z</dc:date>
    </item>
  </channel>
</rss>

