<?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: Group urls together for get requests that have GUID in them in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Group-urls-together-for-get-requests-that-have-GUID-in-them/m-p/537066#M151814</link>
    <description>&lt;P&gt;Thanks, this definitely helps me get the behavior.. just need to tweak the regex to suit my needs. Appreciate your help&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2021 15:04:00 GMT</pubDate>
    <dc:creator>ak8675309</dc:creator>
    <dc:date>2021-01-25T15:04:00Z</dc:date>
    <item>
      <title>Group urls together for get requests that have GUID in them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-urls-together-for-get-requests-that-have-GUID-in-them/m-p/536973#M151795</link>
      <description>&lt;P&gt;Splunk noob here,&lt;/P&gt;&lt;P&gt;Wanted to group our get endpoints under a single entry. We have the following query&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=reporting sourcetype=elilogs cf_app_name=endpoint* "Results.Message"="inbound request" | stats count by "msg.Service.URL" |rename "msg.Service.URL" as "Endpoint"&lt;/P&gt;&lt;P&gt;The results come out as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://endpoint.example.com/sh/bundles" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles&lt;/A&gt; 4944&lt;BR /&gt;&lt;A href="http://endpoint.example.com/sh/bundles/0043005f-a3ce-4f60-8f1d-0a8b076aecdf" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/0043005f-a3ce-4f60-8f1d-0a8b076aecdf&lt;/A&gt; 3&lt;BR /&gt;&lt;A href="http://endpoint.example.com/sh/bundles/0067cb65-1de0-4b8e-bdf9-39920f599961" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/0067cb65-1de0-4b8e-bdf9-39920f599961&lt;/A&gt; 2&lt;BR /&gt;&lt;A href="http://endpoint.example.com/sh/bundles/008950c2-228c-4871-bab7-50dc01a3297a" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/008950c2-228c-4871-bab7-50dc01a3297a&lt;/A&gt; 2&lt;BR /&gt;&lt;A href="http://endpoint.example.com/sh/bundles/00c100b8-47ec-4feb-86ae-99f635f8960f" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/00c100b8-47ec-4feb-86ae-99f635f8960f&lt;/A&gt; 2&lt;BR /&gt;&lt;A href="http://endpoint.example.com/sh/bundles/00c63a13-2700-440d-b54e-1538db038a1e" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/00c63a13-2700-440d-b54e-1538db038a1e&lt;/A&gt; 2&lt;BR /&gt;&lt;A href="http://endpoint.example.com/sh/bundles/00e220d1-4f68-487f-ae01-13999811ba31" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/00e220d1-4f68-487f-ae01-13999811ba31&lt;/A&gt; 2&lt;BR /&gt;&lt;A href="http://endpoint.example.com/sh/bundles/01485473-4b49-4eb8-9a4f-ea5c61f3fe7a" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/01485473-4b49-4eb8-9a4f-ea5c61f3fe7a&lt;/A&gt; 2&lt;BR /&gt;&lt;A href="http://endpoint.example.com/sh/bundles/0164d5d2-3624-40ca-bf4c-6a3619aead00" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/0164d5d2-3624-40ca-bf4c-6a3619aead00&lt;/A&gt; 2&lt;/P&gt;&lt;P&gt;I want the results with guid be grouped under a single value. So the desired output here would be&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;A href="http://endpoint.example.com/sh/bundles" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles&lt;/A&gt; 4944 (stays the same)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;A href="http://endpoint.example.com/sh/bundles/*" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/*&lt;/A&gt;&amp;nbsp;17 (the sum of all the endpoint counts with guid)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Trying to use the query like the following without any luck&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;| eval msg.Service.URL=case(like(msg.Service.URL, "&lt;A href="http://endpoint.example.com/sh/bundles/%" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/%&lt;/A&gt;"), "&lt;A href="http://endpoint.example.com/sh/bundles/*" target="_blank" rel="noopener"&gt;http://endpoint.example.com/sh/bundles/*&lt;/A&gt;", 1=1, 'msg.Service.URL')&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 00:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-urls-together-for-get-requests-that-have-GUID-in-them/m-p/536973#M151795</guid>
      <dc:creator>ak8675309</dc:creator>
      <dc:date>2021-01-25T00:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Group urls together for get requests that have GUID in them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-urls-together-for-get-requests-that-have-GUID-in-them/m-p/536974#M151796</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230811"&gt;@ak8675309&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=reporting sourcetype=elilogs cf_app_name=endpoint* "Results.Message"="inbound request" 
| rename "msg.Service.URL" as Endpoint 
| rex field=Endpoint mode=sed "s/bundles\/[\w-]+/bundles\/*/g" 
| stats count by Endpoint&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 03:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-urls-together-for-get-requests-that-have-GUID-in-them/m-p/536974#M151796</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-01-25T03:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Group urls together for get requests that have GUID in them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-urls-together-for-get-requests-that-have-GUID-in-them/m-p/537066#M151814</link>
      <description>&lt;P&gt;Thanks, this definitely helps me get the behavior.. just need to tweak the regex to suit my needs. Appreciate your help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 15:04:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-urls-together-for-get-requests-that-have-GUID-in-them/m-p/537066#M151814</guid>
      <dc:creator>ak8675309</dc:creator>
      <dc:date>2021-01-25T15:04:00Z</dc:date>
    </item>
  </channel>
</rss>

