<?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: Extract Part of Field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328087#M97643</link>
    <description>&lt;P&gt;hi,&lt;BR /&gt;
Can you please try  (assuming second block in your data is what you want)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults | eval myString="/country-private/file-upload-ready/1d555d59-9b5f-4877-bc76-2597142e1964/9011be92-6a1b-46a6-9e56-48dfdbf36c24"| rex field=myString "\/.+?\/(?&amp;lt;fileStatus&amp;gt;.+?)\/"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/CvfqNH/1"&gt;https://regex101.com/r/CvfqNH/1&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2017 11:55:15 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2017-10-27T11:55:15Z</dc:date>
    <item>
      <title>Extract Part of Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328084#M97640</link>
      <description>&lt;P&gt;Hi, I wonder whether someone could help me please.&lt;/P&gt;

&lt;P&gt;I'm trying to extract a particular value from a field which is "file-upload-ready". I can manage to exclude the value but not to extract it.&lt;/P&gt;

&lt;P&gt;This is and example of the data string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/country-private/file-upload-ready/1d555d59-9b5f-4877-bc76-2597142e1964/9011be92-6a1b-46a6-9e56-48dfdbf36c24
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 09:09:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328084#M97640</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2017-10-27T09:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Part of Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328085#M97641</link>
      <description>&lt;P&gt;you can do it by using rex command, &lt;/P&gt;

&lt;P&gt;search .... | rex field=your_field "\/(?\w+-\w+)\/"&lt;/P&gt;

&lt;P&gt;just verify the reg ex once.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 09:29:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328085#M97641</guid>
      <dc:creator>kunalmao</dc:creator>
      <dc:date>2017-10-27T09:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Part of Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328086#M97642</link>
      <description>&lt;P&gt;Hi @kunalmaom thank you for this, but unfortunately this doesn't extract any data.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 09:43:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328086#M97642</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2017-10-27T09:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Part of Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328087#M97643</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;
Can you please try  (assuming second block in your data is what you want)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults | eval myString="/country-private/file-upload-ready/1d555d59-9b5f-4877-bc76-2597142e1964/9011be92-6a1b-46a6-9e56-48dfdbf36c24"| rex field=myString "\/.+?\/(?&amp;lt;fileStatus&amp;gt;.+?)\/"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/CvfqNH/1"&gt;https://regex101.com/r/CvfqNH/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 11:55:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328087#M97643</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-10-27T11:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Part of Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328088#M97644</link>
      <description>&lt;P&gt;Many thanks @koshyk.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 12:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328088#M97644</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2017-10-27T12:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Part of Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328089#M97645</link>
      <description>&lt;P&gt;obviously it won't , the regex is not correct &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 14:04:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-Part-of-Field/m-p/328089#M97645</guid>
      <dc:creator>kunalmao</dc:creator>
      <dc:date>2017-10-27T14:04:34Z</dc:date>
    </item>
  </channel>
</rss>

