<?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 extract URI following rex command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URI-following-rex-command/m-p/337171#M100035</link>
    <description>&lt;P&gt;Try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval data="URI=/v4/cp/members/summary?hcid=AN5635356&amp;amp;firstnm=ELLEN&amp;amp;lastnm=BRODBINE&amp;amp;dob=1962-01-02" 
| rename data as _raw 
| rex field=_raw "hcid\=(?P&amp;lt;OUTPUT&amp;gt;[^\&amp;amp;]*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 Apr 2018 11:42:32 GMT</pubDate>
    <dc:creator>vinod94</dc:creator>
    <dc:date>2018-04-16T11:42:32Z</dc:date>
    <item>
      <title>How to extract URI following rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URI-following-rex-command/m-p/337169#M100033</link>
      <description>&lt;P&gt;How to extract URI following rex command?&lt;BR /&gt;
My field&lt;BR /&gt;&lt;BR /&gt;
URI=/v4/cp/members/summary?hcid=&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;AN5635356&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&amp;amp;firstnm=ELLEN&amp;amp;lastnm=BRODBINE&amp;amp;dob=1962-01-02&lt;/P&gt;

&lt;P&gt;My rex command :&lt;/P&gt;

&lt;P&gt;| rex field=_raw "URI=/v4/cp/members/summary?(?[^ ]*)"&lt;/P&gt;

&lt;P&gt;?hcid=AN5635356&amp;amp;firstnm=ELLEN&amp;amp;lastnm=BRODBINE&amp;amp;dob=1962-01-02&lt;/P&gt;

&lt;P&gt;Expected output:&lt;BR /&gt;
          AN5635356&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 10:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URI-following-rex-command/m-p/337169#M100033</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2018-04-16T10:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract URI following rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URI-following-rex-command/m-p/337170#M100034</link>
      <description>&lt;P&gt;You need to escape special characters such as &lt;CODE&gt;/&lt;/CODE&gt; and &lt;CODE&gt;?&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Try &lt;CODE&gt;URI=\/v4\/cp\/members\/summary\?hcid=(?P&amp;lt;hcid&amp;gt;[^&amp;amp;]+)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The value will be stored in field &lt;CODE&gt;hcid&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 11:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URI-following-rex-command/m-p/337170#M100034</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-04-16T11:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract URI following rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URI-following-rex-command/m-p/337171#M100035</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval data="URI=/v4/cp/members/summary?hcid=AN5635356&amp;amp;firstnm=ELLEN&amp;amp;lastnm=BRODBINE&amp;amp;dob=1962-01-02" 
| rename data as _raw 
| rex field=_raw "hcid\=(?P&amp;lt;OUTPUT&amp;gt;[^\&amp;amp;]*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Apr 2018 11:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-URI-following-rex-command/m-p/337171#M100035</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2018-04-16T11:42:32Z</dc:date>
    </item>
  </channel>
</rss>

