<?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 Can you help me come up with a regex for an API path? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-a-regex-for-an-API-path/m-p/427128#M122319</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;

&lt;P&gt;Sorry this should be easiest for you, but i have many problem with regex ....&lt;/P&gt;

&lt;P&gt;i want to keep the first 3 sets of information  (bellow in red)&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5924iF959AB9397F555A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;i have already done this :&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;" |rex field=uri_path "^/(?\w+)" | &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;but i have only the first.&lt;/P&gt;

&lt;P&gt;Can you help me ?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 11:41:18 GMT</pubDate>
    <dc:creator>serviceinfrastr</dc:creator>
    <dc:date>2018-10-16T11:41:18Z</dc:date>
    <item>
      <title>Can you help me come up with a regex for an API path?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-a-regex-for-an-API-path/m-p/427128#M122319</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;

&lt;P&gt;Sorry this should be easiest for you, but i have many problem with regex ....&lt;/P&gt;

&lt;P&gt;i want to keep the first 3 sets of information  (bellow in red)&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5924iF959AB9397F555A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;i have already done this :&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;" |rex field=uri_path "^/(?\w+)" | &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;but i have only the first.&lt;/P&gt;

&lt;P&gt;Can you help me ?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 11:41:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-a-regex-for-an-API-path/m-p/427128#M122319</guid>
      <dc:creator>serviceinfrastr</dc:creator>
      <dc:date>2018-10-16T11:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me come up with a regex for an API path?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-a-regex-for-an-API-path/m-p/427129#M122320</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can use below regular expression to extract those values&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourBaseSearch&amp;gt; | rex field=uri_path "^(?&amp;lt;extracted_uri&amp;gt;\/\w+\/\w+\/\w+\/?)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Oct 2018 12:10:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-a-regex-for-an-API-path/m-p/427129#M122320</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-16T12:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me come up with a regex for an API path?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-a-regex-for-an-API-path/m-p/427130#M122321</link>
      <description>&lt;P&gt;this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | rex field=uri_path "^(?&amp;lt;myfield&amp;gt;/\w+/\w+/\w+/)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Oct 2018 12:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-a-regex-for-an-API-path/m-p/427130#M122321</guid>
      <dc:creator>jlelli</dc:creator>
      <dc:date>2018-10-16T12:13:31Z</dc:date>
    </item>
  </channel>
</rss>

