<?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 Creating new Field Extractions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105198#M27278</link>
    <description>&lt;P&gt;I have a set of log data in Splunk Search app contained in source=sampledata,sourcetype=sample.&lt;BR /&gt;
field1,field2,field3 are new fields that i added through the recievers REST endpoint&lt;/P&gt;

&lt;P&gt;3/30/12&lt;BR /&gt;
8:56:11.000 AM  field1=Happy,field2=Sad,field3=Angry&lt;/P&gt;

&lt;P&gt;host=myhost  sourcetype=sample source=sampledata index=main  timestamp=none splunk_server=L33604    punct==,=,= linecount=1 &lt;/P&gt;

&lt;P&gt;3/30/12&lt;BR /&gt;
8:56:11.000 AM  field1=Happy,field2=Sad,field3=Angry&lt;/P&gt;

&lt;P&gt;host=myhost  sourcetype=sample source=sampledata index=main  timestamp=none splunk_server=L33604    punct==,=,= linecount=1 &lt;/P&gt;

&lt;P&gt;3/30/12&lt;BR /&gt;
8:56:11.000 AM  field1=Happy,field2=Sad,field3=Angry&lt;/P&gt;

&lt;P&gt;host=myhost  sourcetype=sample source=sampledata index=main  timestamp=none splunk_server=L33604    punct==,=,= linecount=1 &lt;/P&gt;

&lt;P&gt;Lets say if i want to extract the fields: field1, field2 &amp;amp; field3 at search time, so i configured the say i am going to create new field exractions in $Splunk_HOME/users/admin/search/local/props.conf (props config file for search app) &lt;/P&gt;

&lt;P&gt;What is the regex expression to extract each of these fields at search time(extracting the key value pairs during search time)? I thought it would be something like [\^$.|?*+()]. &lt;/P&gt;</description>
    <pubDate>Fri, 30 Mar 2012 01:09:57 GMT</pubDate>
    <dc:creator>misteryuku</dc:creator>
    <dc:date>2012-03-30T01:09:57Z</dc:date>
    <item>
      <title>Creating new Field Extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105198#M27278</link>
      <description>&lt;P&gt;I have a set of log data in Splunk Search app contained in source=sampledata,sourcetype=sample.&lt;BR /&gt;
field1,field2,field3 are new fields that i added through the recievers REST endpoint&lt;/P&gt;

&lt;P&gt;3/30/12&lt;BR /&gt;
8:56:11.000 AM  field1=Happy,field2=Sad,field3=Angry&lt;/P&gt;

&lt;P&gt;host=myhost  sourcetype=sample source=sampledata index=main  timestamp=none splunk_server=L33604    punct==,=,= linecount=1 &lt;/P&gt;

&lt;P&gt;3/30/12&lt;BR /&gt;
8:56:11.000 AM  field1=Happy,field2=Sad,field3=Angry&lt;/P&gt;

&lt;P&gt;host=myhost  sourcetype=sample source=sampledata index=main  timestamp=none splunk_server=L33604    punct==,=,= linecount=1 &lt;/P&gt;

&lt;P&gt;3/30/12&lt;BR /&gt;
8:56:11.000 AM  field1=Happy,field2=Sad,field3=Angry&lt;/P&gt;

&lt;P&gt;host=myhost  sourcetype=sample source=sampledata index=main  timestamp=none splunk_server=L33604    punct==,=,= linecount=1 &lt;/P&gt;

&lt;P&gt;Lets say if i want to extract the fields: field1, field2 &amp;amp; field3 at search time, so i configured the say i am going to create new field exractions in $Splunk_HOME/users/admin/search/local/props.conf (props config file for search app) &lt;/P&gt;

&lt;P&gt;What is the regex expression to extract each of these fields at search time(extracting the key value pairs during search time)? I thought it would be something like [\^$.|?*+()]. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 01:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105198#M27278</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-03-30T01:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new Field Extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105199#M27279</link>
      <description>&lt;P&gt;By default, Splunk will automatically extract the fields based on key=value format. the left of equal sign as field name and the right as its value.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 01:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105199#M27279</guid>
      <dc:creator>hjwang</dc:creator>
      <dc:date>2012-03-30T01:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new Field Extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105200#M27280</link>
      <description>&lt;P&gt;Yeah. When i want to retrieve the results from the search as an XML through search/jobs/{search_id}/results endpoint the i want the field xml tags to have the new field names i have created. &lt;BR /&gt;
For example i want to see something like this when i retrieve.&lt;BR /&gt;
&lt;FIELD k="field1"&gt;&lt;BR /&gt;
    &lt;VALUE&gt;&lt;TEXT&gt;Happy&lt;/TEXT&gt;&lt;/VALUE&gt;&lt;BR /&gt;
&lt;/FIELD&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 01:53:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105200#M27280</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-03-30T01:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new Field Extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105201#M27281</link>
      <description>&lt;P&gt;You need to specify the fields you want to be returned in your search request. Do that, and the fields you want will show up.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 05:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105201#M27281</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-03-30T05:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new Field Extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105202#M27282</link>
      <description>&lt;P&gt;As in the search commands?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 06:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105202#M27282</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-03-30T06:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new Field Extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105203#M27283</link>
      <description>&lt;P&gt;As a parameter in the API call. Specifically, the &lt;CODE&gt;rf&lt;/CODE&gt; parameter. More info here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTsearches#Tips_on_creating_searches"&gt;http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTsearches#Tips_on_creating_searches&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 06:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105203#M27283</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-03-30T06:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating new Field Extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105204#M27284</link>
      <description>&lt;P&gt;How to disable - extracting the fields based on key=value format in splunk, this is messing up my fields information, as i have defined columns in transform.conf file. &lt;/P&gt;</description>
      <pubDate>Sat, 24 May 2014 00:33:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-new-Field-Extractions/m-p/105204#M27284</guid>
      <dc:creator>deepakmurthy</dc:creator>
      <dc:date>2014-05-24T00:33:59Z</dc:date>
    </item>
  </channel>
</rss>

