<?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 extract fields from a sentence in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-from-a-sentence/m-p/142962#M184985</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I had the following sentence and wish to extract fields as follows:&lt;/P&gt;

&lt;P&gt;event      Row: &lt;CODE&gt;1234, tp1, 314242, 1, 2014-09-27 12:00:19.0, track, 55444, test&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Below is the fields to extract from the above event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Key      Value
S_ID     1234
type     tp1
B_ID     314242
mode   1
B_date  2014-09-27 12:00:19.0
name    track
c_ID      55444
c_name test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How to go abt extracting the fields in the most simplest way? thks&lt;/P&gt;</description>
    <pubDate>Sat, 27 Sep 2014 06:23:11 GMT</pubDate>
    <dc:creator>newbiesplunk</dc:creator>
    <dc:date>2014-09-27T06:23:11Z</dc:date>
    <item>
      <title>extract fields from a sentence</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-from-a-sentence/m-p/142962#M184985</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I had the following sentence and wish to extract fields as follows:&lt;/P&gt;

&lt;P&gt;event      Row: &lt;CODE&gt;1234, tp1, 314242, 1, 2014-09-27 12:00:19.0, track, 55444, test&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Below is the fields to extract from the above event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Key      Value
S_ID     1234
type     tp1
B_ID     314242
mode   1
B_date  2014-09-27 12:00:19.0
name    track
c_ID      55444
c_name test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How to go abt extracting the fields in the most simplest way? thks&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2014 06:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-fields-from-a-sentence/m-p/142962#M184985</guid>
      <dc:creator>newbiesplunk</dc:creator>
      <dc:date>2014-09-27T06:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: extract fields from a sentence</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-from-a-sentence/m-p/142963#M184986</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search | rex "(?&amp;lt;S_ID&amp;gt;.*),(?&amp;lt;type&amp;gt;.*),(?&amp;lt;B_ID&amp;gt;.*),(?&amp;lt;mode&amp;gt;.*),(?&amp;lt;B_date&amp;gt;.*),(?&amp;lt;name&amp;gt;.*),(?&amp;lt;C_ID&amp;gt;.*),(?&amp;lt;C_name&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Sep 2014 07:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-fields-from-a-sentence/m-p/142963#M184986</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-09-27T07:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: extract fields from a sentence</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-fields-from-a-sentence/m-p/142964#M184987</link>
      <description>&lt;P&gt;Do it in the form of a REPORT in props/transforms.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
REPORT-blah = get_my_fields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[get_my_fields]
DELIMS = ","
FIELDS = S_ID, type, B_ID, mode, B_date, name, c_ID, c_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2014 13:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-fields-from-a-sentence/m-p/142964#M184987</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-09-27T13:59:31Z</dc:date>
    </item>
  </channel>
</rss>

