<?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: Why aren't FIELD_NAMES being applied? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443376#M77211</link>
    <description>&lt;P&gt;@richgalloway that worked perfectly!  The docs on how to use the REGEX/DEST_KEY/FORMAT are not that great, your write-up makes much more sense.  Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 16:34:33 GMT</pubDate>
    <dc:creator>DEAD_BEEF</dc:creator>
    <dc:date>2019-05-09T16:34:33Z</dc:date>
    <item>
      <title>Why aren't FIELD_NAMES being applied?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443369#M77204</link>
      <description>&lt;P&gt;Attempting to send a CSV file, but it's a bit messy.  I need to remove some entries that aren't formatted correctly, delete the header row, and replace it with my own (hence &lt;CODE&gt;FIELD_NAMES&lt;/CODE&gt;).  Data is on a UF and goes to my IDX.  I'm not using &lt;CODE&gt;INDEXED_EXTRACTIONS&lt;/CODE&gt; on the UF because the .csv file isn't clean/properly formatted, so I have my IDX doing the work.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;working&lt;/EM&gt;&lt;BR /&gt;
- event breaking&lt;BR /&gt;
- removing improperly formatted entries&lt;BR /&gt;
- removed original header&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;not working&lt;/EM&gt;&lt;BR /&gt;
- my field names (nothing is parsed when searching, my &lt;CODE&gt;FIELD_NAMES&lt;/CODE&gt; are missing).&lt;/P&gt;

&lt;P&gt;&lt;A href="https://wiki.splunk.com/Community:HowIndexingWorks"&gt;Based on this&lt;/A&gt;, I'm thinking that the old header isn't stripped until it reaches typingQueue ( &lt;CODE&gt;TRANSFORMS&lt;/CODE&gt;), but my &lt;CODE&gt;FIELD_NAMES&lt;/CODE&gt; is trying to be applied at the aggQueue so it isn't working...but I'm not sure.  How to fix this?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;UF inputs&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\test\testfile_*.csv]
index = main
sourcetype = test
crcSalt = &amp;lt;SOURCE&amp;gt;
queue = parsingQueue
disbled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;IDX props&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
SHOULD_LINEMERGE = false
FIELD_NAMES = contentID,moduleName,levelName,date,loginID,last,first,var1,var2,var3,var4
FIELD_DELIMITER = ,
TIME_FORMAT = %F %T.%3Q
TZ = UTC
TRANSFORMS-null_hdr_and_nonevt = del_hdr,del_nonevt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;IDX transforms&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[del_hdr]
REGEX = ^ContentID.*
DEST_KEY = queue
FORMAT = nullQueue

[del_nonevt]
REGEX = ^(?!\d+,).*
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 May 2019 18:54:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443369#M77204</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2019-05-08T18:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why aren't FIELD_NAMES being applied?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443370#M77205</link>
      <description>&lt;P&gt;The &lt;CODE&gt;FIELD_NAMES&lt;/CODE&gt; and &lt;CODE&gt;FIELD_DELIMITER&lt;/CODE&gt; attributes only apply when &lt;CODE&gt;INDEXED_EXTRACTIONS&lt;/CODE&gt; is set.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 20:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443370#M77205</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-05-08T20:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why aren't FIELD_NAMES being applied?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443371#M77206</link>
      <description>&lt;P&gt;Are you absolutely sure that you have &lt;STRONG&gt;exactly&lt;/STRONG&gt; 11 fields?  I think not; where, for example, is the time field?  You must list them all.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 20:22:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443371#M77206</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-08T20:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why aren't FIELD_NAMES being applied?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443372#M77207</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt; yes, the timestamp is in the &lt;STRONG&gt;date&lt;/STRONG&gt; field (it follows my TIME_FORMAT entry).  I already tried using &lt;CODE&gt;TIMESTAMP_FIELDS = date&lt;/CODE&gt; but that messed everything up because I'm not using &lt;CODE&gt;INDEXED_EXTRACTIONS&lt;/CODE&gt;.  How can I set these up so everything is parsed?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443372#M77207</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2020-09-30T00:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why aren't FIELD_NAMES being applied?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443373#M77208</link>
      <description>&lt;P&gt;You should also be using &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; but that should not have anything to do with why the fields are not working.  I would open a support case.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 00:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443373#M77208</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-09T00:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why aren't FIELD_NAMES being applied?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443374#M77209</link>
      <description>&lt;P&gt;@richgalloway Please post your comment as an answer so I can accept it since it does explain why my FIELD_NAMES isn't working.  I think I will have to use search time field extractions to get my data parsed (I don't see any other alternatives).  Should be simple since it is comma separated.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 02:28:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443374#M77209</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2019-05-09T02:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why aren't FIELD_NAMES being applied?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443375#M77210</link>
      <description>&lt;P&gt;There may be another option.  Try adding a third transform that parses the CSV.&lt;/P&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
...&lt;BR /&gt;
TRANSFORMS-null_hdr_and_nonevt = del_hdr,del_nonevt, parse_test&lt;/P&gt;

&lt;P&gt;Transforms.conf&lt;BR /&gt;
...&lt;BR /&gt;
[parse_test]&lt;BR /&gt;
REGEX = ([^,]+),([^.]+),([^.]+),([^.]+),([^.]+),([^.]+),([^.]+),([^.]+),([^.]+),([^.]+),([^.]+)&lt;BR /&gt;
DEST_KEY = _raw&lt;BR /&gt;
FORMAT = contentID=$1,moduleName=$2,levelName=$3,date=$4,loginID=$5,last=$6,first=$7,var1=$8,var2=$9,var3=$10,var4=$11&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443375#M77210</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-30T00:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why aren't FIELD_NAMES being applied?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443376#M77211</link>
      <description>&lt;P&gt;@richgalloway that worked perfectly!  The docs on how to use the REGEX/DEST_KEY/FORMAT are not that great, your write-up makes much more sense.  Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 16:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-aren-t-FIELD-NAMES-being-applied/m-p/443376#M77211</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2019-05-09T16:34:33Z</dc:date>
    </item>
  </channel>
</rss>

