<?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: Extraction failure in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41967#M9752</link>
    <description>&lt;P&gt;props.conf:&lt;BR /&gt;
[alerts]&lt;BR /&gt;
REPORT-doorcontrol = doorcontrolcsv&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
[doorcontrolcsv]&lt;BR /&gt;
DELIM = ","&lt;BR /&gt;
FIELDS = "timestamp", "whatever", "door_name", "alert_type", "alert_value"&lt;/P&gt;

&lt;P&gt;Search:&lt;BR /&gt;
sourcetype=alerts | extract reload=T&lt;/P&gt;

&lt;P&gt;I'm still not getting any field extractions.&lt;BR /&gt;
I was just trying to get the extraction to work. I was going to build out the regex once I confirmed I could extract fields.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:50:43 GMT</pubDate>
    <dc:creator>tprzelom</dc:creator>
    <dc:date>2020-09-28T12:50:43Z</dc:date>
    <item>
      <title>Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41960#M9745</link>
      <description>&lt;P&gt;This seems like a straight forward config can someone spot where it's going wrong. I am unable to extract the "aaa" field. The regex and extraction works correctly with the following search.&lt;BR /&gt;
&lt;CODE&gt;sourcetype=alerts | rex field=_raw "(?&amp;lt;aaa&amp;gt;.*\d{4}),"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Raw data (sourcetype alerts):&lt;BR /&gt;
&lt;CODE&gt;Wed Nov 21 09:47:41 EST 2012,CAM,Outer Door,Door State,Closed&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Props.conf(/opt/splunk/etc/apps/myapp/local/):&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[alerts]&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
EXTRACT-door = (?&amp;lt;aaa&amp;gt;.*\d{4}),&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Search:&lt;BR /&gt;
&lt;CODE&gt;sourcetype=alerts | extract reload=true&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Thomas&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:40:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41960#M9745</guid>
      <dc:creator>tprzelom</dc:creator>
      <dc:date>2012-11-21T15:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41961#M9746</link>
      <description>&lt;P&gt;Try removing KV_MODE=none&lt;/P&gt;

&lt;P&gt;and issue &lt;/P&gt;

&lt;P&gt;| extract reload=T&lt;/P&gt;

&lt;P&gt;From the flashtimeline.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41961#M9746</guid>
      <dc:creator>RicoSuave</dc:creator>
      <dc:date>2012-11-21T15:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41962#M9747</link>
      <description>&lt;P&gt;Still no extraction happening&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:50:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41962#M9747</guid>
      <dc:creator>tprzelom</dc:creator>
      <dc:date>2012-11-21T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41963#M9748</link>
      <description>&lt;P&gt;Can we get a brief description on your architecture? Are you running a search head(s) with configured distributed peers? is there search head pooling involved? or is this just a one sh/indexer deployment? Also, if you could attach the output of the following command&lt;/P&gt;

&lt;P&gt;./splunk cmd btool props list&lt;/P&gt;

&lt;P&gt;That will help.&lt;/P&gt;

&lt;P&gt;Additionally, make sure the field discovery button is turned to the on position.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41963#M9748</guid>
      <dc:creator>RicoSuave</dc:creator>
      <dc:date>2012-11-21T15:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41964#M9749</link>
      <description>&lt;P&gt;Single SH/indexer deployment, that outputs a 3MB file because I have the Enterprise Security app installed.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41964#M9749</guid>
      <dc:creator>tprzelom</dc:creator>
      <dc:date>2012-11-21T16:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41965#M9750</link>
      <description>&lt;P&gt;What exactly are you trying to capture? Your regex (.*\d{4}) doesn't match anything except the timestamp.&lt;/P&gt;

&lt;P&gt;Based on your props config, I will assume you are looking for the Door name.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;rex field=_raw "\d{4},(?&amp;lt;whatever_cam_is&amp;gt;[^,]*),(?&amp;lt;door_name&amp;gt;[^,]*),"&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;should give you whatever field the CAM refers to, and the door_name of "Outer Door".&lt;/P&gt;

&lt;P&gt;Have you considered using a transform? &lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[alerts]&lt;BR /&gt;
REPORT-doorcontrol = doorcontrolcsv&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[doorcontrolcsv]&lt;BR /&gt;
DELIM = ","&lt;BR /&gt;
FIELDS = "timestamp", "whatever", "door_name", "alert_type", "alert_value"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41965#M9750</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-11-21T16:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41966#M9751</link>
      <description>&lt;P&gt;You should search through the output for the [alerts] stanza and see what configs it has.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:14:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41966#M9751</guid>
      <dc:creator>RicoSuave</dc:creator>
      <dc:date>2012-11-21T16:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41967#M9752</link>
      <description>&lt;P&gt;props.conf:&lt;BR /&gt;
[alerts]&lt;BR /&gt;
REPORT-doorcontrol = doorcontrolcsv&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
[doorcontrolcsv]&lt;BR /&gt;
DELIM = ","&lt;BR /&gt;
FIELDS = "timestamp", "whatever", "door_name", "alert_type", "alert_value"&lt;/P&gt;

&lt;P&gt;Search:&lt;BR /&gt;
sourcetype=alerts | extract reload=T&lt;/P&gt;

&lt;P&gt;I'm still not getting any field extractions.&lt;BR /&gt;
I was just trying to get the extraction to work. I was going to build out the regex once I confirmed I could extract fields.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41967#M9752</guid>
      <dc:creator>tprzelom</dc:creator>
      <dc:date>2020-09-28T12:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41968#M9753</link>
      <description>&lt;P&gt;Your search should just be &lt;CODE&gt;sourcetype=alerts&lt;/CODE&gt;. I believe the &lt;CODE&gt;extract&lt;/CODE&gt; doesn't need to be there to pull searchtime extraction changes any more.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41968#M9753</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-11-21T16:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41969#M9754</link>
      <description>&lt;P&gt;[alerts]&lt;BR /&gt;
ANNOTATE_PUNCT = True&lt;BR /&gt;
BREAK_ONLY_BEFORE =&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = True&lt;BR /&gt;
CHARSET = UTF-8&lt;BR /&gt;
DATETIME_CONFIG = /etc/datetime.xml&lt;BR /&gt;
HEADER_MODE =&lt;BR /&gt;
LEARN_SOURCETYPE = true&lt;BR /&gt;
LINE_BREAKER_LOOKBEHIND = 100&lt;BR /&gt;
MAX_DAYS_AGO = 2000&lt;BR /&gt;
MAX_DAYS_HENCE = 2&lt;BR /&gt;
MAX_DIFF_SECS_AGO = 3600&lt;BR /&gt;
MAX_DIFF_SECS_HENCE = 604800&lt;BR /&gt;
MAX_EVENTS = 256&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 128&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41969#M9754</guid>
      <dc:creator>tprzelom</dc:creator>
      <dc:date>2020-09-28T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41970#M9755</link>
      <description>&lt;P&gt;MUST_BREAK_AFTER =&lt;BR /&gt;
MUST_NOT_BREAK_AFTER =&lt;BR /&gt;
MUST_NOT_BREAK_BEFORE =&lt;BR /&gt;
REPORT-doorcontrol = doorcontrolcsv&lt;BR /&gt;
SEGMENTATION = indexing&lt;BR /&gt;
SEGMENTATION-all = full&lt;BR /&gt;
SEGMENTATION-inner = inner&lt;BR /&gt;
SEGMENTATION-outer = outer&lt;BR /&gt;
SEGMENTATION-raw = none&lt;BR /&gt;
SEGMENTATION-standard = standard&lt;BR /&gt;
SHOULD_LINEMERGE = True&lt;BR /&gt;
TRANSFORMS =&lt;BR /&gt;
TRUNCATE = 10000&lt;BR /&gt;
maxDist = 100&lt;/P&gt;

&lt;P&gt;There was a bunch of lookups associated with ES in the output too, but I cut them out to save space/characters.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41970#M9755</guid>
      <dc:creator>tprzelom</dc:creator>
      <dc:date>2020-09-28T12:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41971#M9756</link>
      <description>&lt;P&gt;I removed the pipe to extract reload=T and am receiving the same results&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 18:19:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41971#M9756</guid>
      <dc:creator>tprzelom</dc:creator>
      <dc:date>2012-11-21T18:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41972#M9757</link>
      <description>&lt;P&gt;[doorcontrolcsv]&lt;BR /&gt;
DELIM = ","&lt;BR /&gt;
FIELDS = "timestamp", "whatever", "door_name", "alert_type", "alert_value"&lt;/P&gt;

&lt;P&gt;There should be an S at the end of DELIMS, for anyone who comes across this&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:51:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41972#M9757</guid>
      <dc:creator>tprzelom</dc:creator>
      <dc:date>2020-09-28T12:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41973#M9758</link>
      <description>&lt;P&gt;whoops. Thanks tprzelom. If this answers your question (albeit misspelled) please accept it. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2012 18:51:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41973#M9758</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-11-26T18:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41974#M9759</link>
      <description>&lt;P&gt;Found it.&lt;/P&gt;

&lt;P&gt;App permission problem&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/61063/simple-field-extractions-not-working-in-props"&gt;http://splunk-base.splunk.com/answers/61063/simple-field-extractions-not-working-in-props&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2012 19:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extraction-failure/m-p/41974#M9759</guid>
      <dc:creator>tprzelom</dc:creator>
      <dc:date>2012-11-26T19:57:18Z</dc:date>
    </item>
  </channel>
</rss>

