<?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: Problem Creating new search time field extraction Thru the REST API and Java Splunk SDK in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problem-Creating-new-search-time-field-extraction-Thru-the-REST/m-p/21863#M3652</link>
    <description>&lt;P&gt;please see my answer to your other similar question: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/44955/create-new-field-extraction-regex-expression-via-rest-api-java-sdk"&gt;http://splunk-base.splunk.com/answers/44955/create-new-field-extraction-regex-expression-via-rest-api-java-sdk&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2012 06:53:24 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2012-04-09T06:53:24Z</dc:date>
    <item>
      <title>Problem Creating new search time field extraction Thru the REST API and Java Splunk SDK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-Creating-new-search-time-field-extraction-Thru-the-REST/m-p/21862#M3651</link>
      <description>&lt;P&gt;I have a problem creating new search time field extractions using the Splunk's REST API and the Java SDK.&lt;/P&gt;

&lt;P&gt;This is the java code.&lt;BR /&gt;
RequestMessage reqMsg = new RequestMessage();&lt;BR /&gt;
reqMsg.setMethod("post");&lt;BR /&gt;
reqMsg.setContent("name=firstname&amp;amp;stanza=sexuality&amp;amp;type=EXTRACT&amp;amp;value=(?i)^[^,]*,\w+=(?P&lt;FIELD2&gt;[^,]+)");&lt;/FIELD2&gt;&lt;/P&gt;

&lt;P&gt;ResponseMessage resMsg = authService.send("/servicesNS/admin/search/data/props/extractions",reqMsg);&lt;/P&gt;

&lt;P&gt;The result was an error : &lt;BR /&gt;
 HTTP 500 -- In handler 'props-extract': Data could not be written: /admin/search/props/sexuality/EXTRACT-firstname: (?i)^[^,]*,\w &lt;/P&gt;

&lt;P&gt;How do i fix this so that i can create a new search time field extraction through the REST API using Java ?? and i also cannot create the extraction on the IFX the error still persists.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 00:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-Creating-new-search-time-field-extraction-Thru-the-REST/m-p/21862#M3651</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-04-09T00:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Creating new search time field extraction Thru the REST API and Java Splunk SDK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-Creating-new-search-time-field-extraction-Thru-the-REST/m-p/21863#M3652</link>
      <description>&lt;P&gt;please see my answer to your other similar question: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/44955/create-new-field-extraction-regex-expression-via-rest-api-java-sdk"&gt;http://splunk-base.splunk.com/answers/44955/create-new-field-extraction-regex-expression-via-rest-api-java-sdk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 06:53:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-Creating-new-search-time-field-extraction-Thru-the-REST/m-p/21863#M3652</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-04-09T06:53:24Z</dc:date>
    </item>
  </channel>
</rss>

