<?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: Avoid header at Index time and extract field during search in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Avoid-header-at-Index-time-and-extract-field-during-search/m-p/99957#M20872</link>
    <description>&lt;P&gt;This seems to work: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[NoHeader]&lt;BR /&gt;
REGEX = ^"Personid"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and also your original: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[NoHeader]&lt;BR /&gt;
REGEX = ^"Personid".*&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Make sure you're doing this on an indexer (or heavy forwarder) and &lt;STRONG&gt;restart&lt;/STRONG&gt; after change. &lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2013 17:48:31 GMT</pubDate>
    <dc:creator>_d_</dc:creator>
    <dc:date>2013-10-15T17:48:31Z</dc:date>
    <item>
      <title>Avoid header at Index time and extract field during search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Avoid-header-at-Index-time-and-extract-field-during-search/m-p/99956#M20871</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to not have in my events the header of a txt file separated by tab (I suppose it's at index time), after that I extract field at search time. The problem is that everything I tried left the header in the event.&lt;BR /&gt;
Any key?&lt;/P&gt;

&lt;P&gt;Here my code in props.conf and transfomrs.conf:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
NO_BINARY_CHECK = 1
pulldown_type = 1
TRANSFORMS-NoHeader = NoHeader
REPORT -mysourcetypeextract = extract_mysourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [extract_mysourcetype]
 DELIMS = "\t"
 FIELDS = personid, email,  createdate, time_window_web

[NoHeader]
REGEX = ^"Personid".*
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the first lines of my log file&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Personid"  "Email" "Createdate"    "Time Window Web"   
"0000000"   "xxxxxx@xxxx.xxx"   "00/00/1900"    "00:00"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I really don't know what to do, I've tried all the answer on the site &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thank you for the help&lt;BR /&gt;
Erica&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 15:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Avoid-header-at-Index-time-and-extract-field-during-search/m-p/99956#M20871</guid>
      <dc:creator>emaccaferri</dc:creator>
      <dc:date>2013-10-15T15:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid header at Index time and extract field during search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Avoid-header-at-Index-time-and-extract-field-during-search/m-p/99957#M20872</link>
      <description>&lt;P&gt;This seems to work: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[NoHeader]&lt;BR /&gt;
REGEX = ^"Personid"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and also your original: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[NoHeader]&lt;BR /&gt;
REGEX = ^"Personid".*&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Make sure you're doing this on an indexer (or heavy forwarder) and &lt;STRONG&gt;restart&lt;/STRONG&gt; after change. &lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 17:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Avoid-header-at-Index-time-and-extract-field-during-search/m-p/99957#M20872</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2013-10-15T17:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid header at Index time and extract field during search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Avoid-header-at-Index-time-and-extract-field-during-search/m-p/99958#M20873</link>
      <description>&lt;P&gt;Yes, it was working, but testing on the same file I had to cancel all the index and the data&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 07:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Avoid-header-at-Index-time-and-extract-field-during-search/m-p/99958#M20873</guid>
      <dc:creator>emaccaferri</dc:creator>
      <dc:date>2013-10-18T07:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid header at Index time and extract field during search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Avoid-header-at-Index-time-and-extract-field-during-search/m-p/99959#M20874</link>
      <description>&lt;P&gt;When you use Header-based Index-time field extractions, the header doesn't get indexed but we use it to map the field:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try in props.conf:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
FIELD_DELIMITER=space&lt;BR /&gt;
FIELD_QUOTE="&lt;BR /&gt;
HEADER_FIELD_DELIMITER=space&lt;BR /&gt;
HEADER_FIELD_QUOTE="&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You will need to play with the settings a bit if tabs separate the header or events but this is way better than stripping the header as it skips the need for doing search-time field extraction.&lt;/P&gt;

&lt;P&gt;I should note this also only works on Splunk 6.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:11:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Avoid-header-at-Index-time-and-extract-field-during-search/m-p/99959#M20874</guid>
      <dc:creator>ogdin</dc:creator>
      <dc:date>2014-02-13T16:11:18Z</dc:date>
    </item>
  </channel>
</rss>

