<?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 a string from each value in a column in my log? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215052#M63044</link>
    <description>&lt;P&gt;Try this. It'll create a new field named year with the information you asked for:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search here
| rex field=DESC "(?&amp;lt;year&amp;gt;Year\-\d{4})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 Apr 2016 13:12:20 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2016-04-26T13:12:20Z</dc:date>
    <item>
      <title>How to extract a string from each value in a column in my log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215051#M63043</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I have log with 3 columns&lt;/P&gt;

&lt;P&gt;ID....TYPE...... DESC&lt;BR /&gt;
1.......A............Member Since &lt;STRONG&gt;Year-2015&lt;/STRONG&gt;&lt;BR /&gt;
2...... B............Member Since &lt;STRONG&gt;Year-2014&lt;/STRONG&gt;&lt;BR /&gt;
3...... A............Member Since &lt;STRONG&gt;Year-2014&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I only want bold part from field &lt;STRONG&gt;DESC&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;How to write such a search?&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 12:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215051#M63043</guid>
      <dc:creator>tp92222</dc:creator>
      <dc:date>2016-04-26T12:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string from each value in a column in my log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215052#M63044</link>
      <description>&lt;P&gt;Try this. It'll create a new field named year with the information you asked for:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search here
| rex field=DESC "(?&amp;lt;year&amp;gt;Year\-\d{4})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Apr 2016 13:12:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215052#M63044</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-04-26T13:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string from each value in a column in my log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215053#M63045</link>
      <description>&lt;P&gt;Assuming that DESC is already a extracted field&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;your base search | rex field=DESC "Member\sSince\s(?&amp;lt;member_since&amp;gt;.*)"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 13:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215053#M63045</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2016-04-26T13:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string from each value in a column in my log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215054#M63046</link>
      <description>&lt;P&gt;Hi, did any of the comments below help you on this?&lt;BR /&gt;
If yes, can you mark it as answered?&lt;BR /&gt;
If not, is there any else we can do to help?&lt;BR /&gt;
Unanswered questions make me sad &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 16:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215054#M63046</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-05-09T16:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a string from each value in a column in my log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215055#M63047</link>
      <description>&lt;P&gt;thanks for help!!!!!&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 06:03:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-each-value-in-a-column-in-my-log/m-p/215055#M63047</guid>
      <dc:creator>tp92222</dc:creator>
      <dc:date>2016-05-24T06:03:01Z</dc:date>
    </item>
  </channel>
</rss>

