<?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: Creating field extraction in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104080#M21906</link>
    <description>&lt;P&gt;Under the user you posted the changes as. So for instance if you used the user 'admin', the changes will be found in &lt;CODE&gt;$SPLUNK_HOME/etc/users/admin/search/local/props.conf&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Mar 2012 07:11:27 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-03-29T07:11:27Z</dc:date>
    <item>
      <title>Creating field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104075#M21901</link>
      <description>&lt;P&gt;I would like to create a new field extraction through props.config for search app.&lt;BR /&gt;
For example i want to retrieve a custom field called partner whenever i search for events in a source called sexydata and sourcetype = sexuality using the search app.&lt;/P&gt;

&lt;P&gt;I created the new field extraction through this REST endpoint.&lt;BR /&gt;
&lt;A href="https://localhost:8089/servicesNS/admin/search/data/props/extractions?name=sexuality&amp;amp;stanza=partner&amp;amp;type=EXTRACT&amp;amp;partner=%5C%5Bw+%5C%5D("&gt;https://localhost:8089/servicesNS/admin/search/data/props/extractions?name=sexuality&amp;amp;stanza=partner&amp;amp;type=EXTRACT&amp;amp;partner=\[w+\](&lt;/A&gt;?&lt;ERR_CODE&gt;[^:]+)&lt;/ERR_CODE&gt;&lt;/P&gt;

&lt;P&gt;I don't understand why an HTTP 400 error was thrown when all the GET key=value parameters i appended to the url was thrown and the new field wasn't extracted.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 06:36:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104075#M21901</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-03-29T06:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104076#M21902</link>
      <description>&lt;P&gt;First of all, I would advise you to start by defining these extractions directly in props.conf first to make sure your extractions are working properly before moving on to trying to set the extractions via the API. It makes troubleshooting easier.&lt;/P&gt;

&lt;P&gt;Second, your syntax is wrong. The response body should give you some insight into this. As per the docs that you should have read, you should be giving the parameters as POST data, not GET. &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.1/RESTAPI/RESTknowledge#POST_data.2Fprops.2Fextractions"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.1/RESTAPI/RESTknowledge#POST_data.2Fprops.2Fextractions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 06:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104076#M21902</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-03-29T06:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104077#M21903</link>
      <description>&lt;P&gt;that means the parameters are sent through HTTP request body?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 06:57:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104077#M21903</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-03-29T06:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104078#M21904</link>
      <description>&lt;P&gt;Yes, as POST parameters which indeed are sent in the request body.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 06:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104078#M21904</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-03-29T06:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104079#M21905</link>
      <description>&lt;P&gt;I have done that however i don't see any changes to the props config file for the search app. Where do i see the changes?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 07:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104079#M21905</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-03-29T07:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104080#M21906</link>
      <description>&lt;P&gt;Under the user you posted the changes as. So for instance if you used the user 'admin', the changes will be found in &lt;CODE&gt;$SPLUNK_HOME/etc/users/admin/search/local/props.conf&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 07:11:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104080#M21906</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-03-29T07:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104081#M21907</link>
      <description>&lt;P&gt;More info available here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.1/RESTAPI/RESTconfigurations"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.1/RESTAPI/RESTconfigurations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 07:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104081#M21907</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-03-29T07:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104082#M21908</link>
      <description>&lt;P&gt;So if i created the new field extractions through the props config file then that means whenever i retrieve the results  from the search app via the search/jobs/{search_id}/results REST endpoint i will be able to see the field xml tags with field names extracted as the field attribute k value? Is that true??&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 07:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104082#M21908</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-03-29T07:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104083#M21909</link>
      <description>&lt;P&gt;I go check it out.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 07:24:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104083#M21909</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-03-29T07:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating field extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104084#M21910</link>
      <description>&lt;P&gt;Yes. You need to make sure to specify which fields you want to be returned in your search request, but the extractions will be persistent, yes.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 07:25:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-field-extraction/m-p/104084#M21910</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-03-29T07:25:32Z</dc:date>
    </item>
  </channel>
</rss>

