<?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 do I extract a field value after a specific string in unstructured data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-field-value-after-a-specific-string-in/m-p/406706#M117515</link>
    <description>&lt;P&gt;Try this regex: &lt;CODE&gt;testlog\s+(?&amp;lt;fieldA&amp;gt;\w+)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/FPWM6h/1"&gt;https://regex101.com/r/FPWM6h/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Change that &lt;CODE&gt;\w+&lt;/CODE&gt; to whatever you need to capture the value (e.g. if it can also contain non-word characters like - or . or so).&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 08:25:34 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2019-02-25T08:25:34Z</dc:date>
    <item>
      <title>How do I extract a field value after a specific string in unstructured data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-field-value-after-a-specific-string-in/m-p/406705#M117514</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I would like to extract a new field from unstructured data. FX does not help for 100%, so I would like to use regex instead.&lt;/P&gt;

&lt;P&gt;Is it possible to extract a string that appears after a specific word? For example, I always want to extract the string that appears after the word &lt;EM&gt;testlog&lt;/EM&gt;:&lt;/P&gt;

&lt;P&gt;Sample events (the value for my new fieldA should always be the string after testlog):&lt;/P&gt;

&lt;P&gt;1551079647 the testlog &lt;STRONG&gt;13000&lt;/STRONG&gt; entered the system&lt;/P&gt;

&lt;P&gt;1551079652 this is a testlog &lt;STRONG&gt;for&lt;/STRONG&gt; fieldextraction&lt;/P&gt;

&lt;P&gt;Result of the field extraction:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;fieldA=13000
fieldA=for
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;

&lt;P&gt;Heinz&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 07:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-field-value-after-a-specific-string-in/m-p/406705#M117514</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2019-02-25T07:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a field value after a specific string in unstructured data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-field-value-after-a-specific-string-in/m-p/406706#M117515</link>
      <description>&lt;P&gt;Try this regex: &lt;CODE&gt;testlog\s+(?&amp;lt;fieldA&amp;gt;\w+)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/FPWM6h/1"&gt;https://regex101.com/r/FPWM6h/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Change that &lt;CODE&gt;\w+&lt;/CODE&gt; to whatever you need to capture the value (e.g. if it can also contain non-word characters like - or . or so).&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 08:25:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-field-value-after-a-specific-string-in/m-p/406706#M117515</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-02-25T08:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract a field value after a specific string in unstructured data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-field-value-after-a-specific-string-in/m-p/406707#M117516</link>
      <description>&lt;P&gt;That points me to the right direction, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 08:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-a-field-value-after-a-specific-string-in/m-p/406707#M117516</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2019-02-25T08:46:33Z</dc:date>
    </item>
  </channel>
</rss>

