<?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 to write regex to filter out UUID before stats count in a search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-filter-out-UUID-before-stats-count-in-a/m-p/146341#M40886</link>
    <description>&lt;P&gt;Got it:&lt;BR /&gt;
req="v*/documents/*" | rex field=req mode=sed "s/[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}//g" | stats count by req&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:45:17 GMT</pubDate>
    <dc:creator>wang</dc:creator>
    <dc:date>2020-09-28T17:45:17Z</dc:date>
    <item>
      <title>How to write regex to filter out UUID before stats count in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-filter-out-UUID-before-stats-count-in-a/m-p/146339#M40884</link>
      <description>&lt;P&gt;In my logs, I have a variable &lt;STRONG&gt;req&lt;/STRONG&gt; that contains a REST request which includes an UUID.  How do I remove the UUID so that &lt;EM&gt;stats count by req&lt;/EM&gt; will ignore the UUID?&lt;/P&gt;

&lt;P&gt;req="v*/documents/*" | stats count by req&lt;/P&gt;

&lt;P&gt;v2/documents/0003cfad-c6ce-46f1-b617-9efd95d79b52&lt;BR /&gt;
v2/documents/0003cfad-c6ce-46f1-b617-9efd95d79b52/status&lt;BR /&gt;
v2/documents/004083f4-467e-4d25-9d71-baf7087acb2b&lt;BR /&gt;
v2/documents/004083f4-467e-4d25-9d71-baf7087acb2b/status&lt;BR /&gt;
v2/documents/0063891d-6822-493e-a650-31cc57989310/create&lt;BR /&gt;
v2/documents/00ee9bb9-e21b-44c7-b437-d0c7dd1057f8&lt;BR /&gt;
v2/documents/00ee9bb9-e21b-44c7-b437-d0c7dd1057f8/status&lt;BR /&gt;
v2/documents/00fcce48-1768-4e89-a58b-e699be061ae4/delete&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:45:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-filter-out-UUID-before-stats-count-in-a/m-p/146339#M40884</guid>
      <dc:creator>wang</dc:creator>
      <dc:date>2020-09-28T17:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex to filter out UUID before stats count in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-filter-out-UUID-before-stats-count-in-a/m-p/146340#M40885</link>
      <description>&lt;P&gt;Can you provide an example output that you are currently getting and also provide an example of what your expecting based on your example above.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 18:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-filter-out-UUID-before-stats-count-in-a/m-p/146340#M40885</guid>
      <dc:creator>icyfeverr</dc:creator>
      <dc:date>2014-09-30T18:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex to filter out UUID before stats count in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-filter-out-UUID-before-stats-count-in-a/m-p/146341#M40886</link>
      <description>&lt;P&gt;Got it:&lt;BR /&gt;
req="v*/documents/*" | rex field=req mode=sed "s/[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}//g" | stats count by req&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-regex-to-filter-out-UUID-before-stats-count-in-a/m-p/146341#M40886</guid>
      <dc:creator>wang</dc:creator>
      <dc:date>2020-09-28T17:45:17Z</dc:date>
    </item>
  </channel>
</rss>

