<?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: Splunk Search help! in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694622#M236242</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243022"&gt;@kc_prane&lt;/a&gt;&amp;nbsp;, try this - create a new eval field (ServiceGroup) to check whether ServiceName is A or B, else assign it to "Other_Services" :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "^[^=\n]*=(?P&amp;lt;ServiceName&amp;gt;[^,]+)" 
| rex "TimeMS\s\=\s(?&amp;lt;Trans_Time&amp;gt;\d+)" 
| eval ServiceGroup = case(
    ServiceName == "A", "A",
    ServiceName == "B", "B",
    1==1, "Other_Services"
    ) 
| stats 
    avg(Trans_Time) as Avg_Trans_Time,
    count as Count
    by ServiceGroup 
| rename ServiceGroup as ServiceName 
| sort ServiceName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 04:02:20 GMT</pubDate>
    <dc:creator>KendallW</dc:creator>
    <dc:date>2024-07-30T04:02:20Z</dc:date>
    <item>
      <title>Splunk Search help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694620#M236240</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I Have ServiceNames (A, B ,C ,D, E,&amp;nbsp; F, G, H)&amp;nbsp; but want&amp;nbsp; (C ,D, E,&amp;nbsp; F, G, H ) ServiceNames combined results and renamed as "Other_Services"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My base search&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;| rex "^[^=\n]*=(?P&amp;lt;ServiceName&amp;gt;[^,]+)"
| rex "TimeMS\s\=\s(?&amp;lt;Trans_Time&amp;gt;\d+)"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Required Results&lt;/P&gt;&lt;TABLE width="581"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="208"&gt;ServiceName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD width="228"&gt;Trans_Time&lt;/TD&gt;&lt;TD width="145"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;1234&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Other_Services( C , D, E, F,G,H)&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;1234567&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 30 Jul 2024 02:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694620#M236240</guid>
      <dc:creator>kc_prane</dc:creator>
      <dc:date>2024-07-30T02:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694622#M236242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243022"&gt;@kc_prane&lt;/a&gt;&amp;nbsp;, try this - create a new eval field (ServiceGroup) to check whether ServiceName is A or B, else assign it to "Other_Services" :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "^[^=\n]*=(?P&amp;lt;ServiceName&amp;gt;[^,]+)" 
| rex "TimeMS\s\=\s(?&amp;lt;Trans_Time&amp;gt;\d+)" 
| eval ServiceGroup = case(
    ServiceName == "A", "A",
    ServiceName == "B", "B",
    1==1, "Other_Services"
    ) 
| stats 
    avg(Trans_Time) as Avg_Trans_Time,
    count as Count
    by ServiceGroup 
| rename ServiceGroup as ServiceName 
| sort ServiceName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 04:02:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694622#M236242</guid>
      <dc:creator>KendallW</dc:creator>
      <dc:date>2024-07-30T04:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694634#M236245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243022"&gt;@kc_prane&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;what's the difference with your previous question?&lt;/P&gt;&lt;P&gt;Anyway, the solution hinted by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/121137"&gt;@KendallW&lt;/a&gt;&amp;nbsp;is similar with my previous one.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 06:04:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694634#M236245</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-30T06:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694701#M236272</link>
      <description>&lt;P&gt;Hello, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;. Thank you for your response. I had an issue with Rex. I corrected that now, and your earlier query works for me.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 15:49:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694701#M236272</guid>
      <dc:creator>kc_prane</dc:creator>
      <dc:date>2024-07-30T15:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694702#M236273</link>
      <description>&lt;P&gt;Thanks @KendalW for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 15:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694702#M236273</guid>
      <dc:creator>kc_prane</dc:creator>
      <dc:date>2024-07-30T15:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search help!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694703#M236274</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243022"&gt;@kc_prane&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 15:50:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Search-help/m-p/694703#M236274</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-30T15:50:57Z</dc:date>
    </item>
  </channel>
</rss>

