<?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: Splunk insisting on Auto-finding CSV fields? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91183#M18940</link>
    <description>&lt;P&gt;Thanks, haven't got it to work yet, but I'll keep investigating. I think I might have to change some other things around relating to the source types.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2011 19:44:32 GMT</pubDate>
    <dc:creator>travispowell</dc:creator>
    <dc:date>2011-04-28T19:44:32Z</dc:date>
    <item>
      <title>Splunk insisting on Auto-finding CSV fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91181#M18938</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Splunk is insisting on trying to auto-find headers in a tab-delimited CSV file for which I have manually defined headers in a CONF file. I thought that putting this information in /etc/system/local would override the /etc/apps/learned/ but it doesn't look like that's the case...&lt;/P&gt;

&lt;P&gt;Here are my CONF files for system-local:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///logs/strauss_splunk/bulksession]
sourcetype=csv
source=strauss_sessions
index=strauss_sessions
host=WHITNEY

[monitor:///logs/strauss_splunk/bulkurl]
sourcetype=csv
source=strauss_url
index=strauss_url
host=WHITNEY

[monitor:///inetpub/strauss_splunk/bulkhit]
sourcetype=csv
source=strauss_hits
index=strauss_hits
host=WHITNEY
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::strauss_url]
SHOULD_LINEMERGE=false
CHECK_FOR_HEADER=false
TRANSFORMS-STRAUSSTSV=STRAUSSTSV-1

[source::strauss_sessions]
SHOULD_LINEMERGE=false
CHECK_FOR_HEADER=false
TRANSFORMS-STRAUSSTSV=STRAUSSTSV-2

[source::strauss_hits]
SHOULD_LINEMERGE=false
CHECK_FOR_HEADER=false
TRANSFORMS-STRAUSSTSV=STRAUSSTSV-3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[STRAUSSTSV-3]
DELIMS = "  "
FIELDS = "SESSION_KEY", "HIT_KEY", "ID", "SECURE"

[STRAUSSTSV-2]
DELIMS = "  "
FIELDS = "SESSION_KEY", "ADDRESS", "CANISTER"

[STRAUSSTSV-1]
DELIMS = "  "
FIELDS = "SESSION_KEY", "HIT_KEY", "NAME", "VALUE", "TIMESTAMP"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;* * * * * * * * * * * * * * * * * * * * * * * *&lt;/P&gt;

&lt;P&gt;...and this all looks good, right? But... this is what the /system/learned/ CONF files populate as afterwards:&lt;/P&gt;

&lt;P&gt;* * * * * * * * * * * * * * * * * * * * * * * * &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[csv-2]
KV_MODE = none
REPORT-AutoHeader = AutoHeader-1
SHOULD_LINEMERGE = False
given_type = csv
pulldown_type = true

[csv-3]
KV_MODE = none
REPORT-AutoHeader = AutoHeader-2
SHOULD_LINEMERGE = False
given_type = csv
pulldown_type = true

[csv-4]
KV_MODE = none
REPORT-AutoHeader = AutoHeader-3
SHOULD_LINEMERGE = False
given_type = csv
pulldown_type = true

[csv-5]
KV_MODE = none
REPORT-AutoHeader = AutoHeader-4
SHOULD_LINEMERGE = False
given_type = csv
pulldown_type = true

[csv-6]
KV_MODE = none
REPORT-AutoHeader = AutoHeader-5
SHOULD_LINEMERGE = False
given_type = csv
pulldown_type = true95
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[AutoHeader-1]
DELIMS = "  "
FIELDS = "58b0c3f3c517dd9ee90cf256800dae98", "27eec7a8d949b8afe03a11b47604633b", "B99004EA29E4FA783416FAC3F7AB87A5", "N"

[AutoHeader-2]
DELIMS = "  "
FIELDS = "0f4c4f0c76bb2898ccbcfa816cfbe49b", "cbb2438acf31acf8acefacb3ff2b59a9", "EA9AE62469C9E2DCE926B32A545675EA", "N"

[AutoHeader-3]
DELIMS = "  "
FIELDS = "8ed97b717ce4b20e561a9c5a033f925c", "44bdc568a0b0052fd2232239257ebc6c", "897FFA5C1C1F078517B1FF8DB392AC54", "Y"

[AutoHeader-4]
DELIMS = "  "
FIELDS = "58b0c3f3c517dd9ee90cf256800dae98", "63.194.158.158", "LSSN_20110419_WHITNEY.dat"

[AutoHeader-5]
DELIMS = "  "
FIELDS = "becf1cd6433bd8ddf2a3f4e9da3fe133", "20c184e3ce2396fbda9d5071c8b3344d", "login_username", "XXXXXXXXXXXXXXXX", "2011-04-19 07:00:20.000"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas??&lt;/P&gt;

&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 18:20:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91181#M18938</guid>
      <dc:creator>travispowell</dc:creator>
      <dc:date>2011-04-28T18:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk insisting on Auto-finding CSV fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91182#M18939</link>
      <description>&lt;P&gt;You might want to add this to your props.conf&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/admin/Propsconf" target="_blank"&gt;http://www.splunk.com/base/Documentation/latest/admin/Propsconf&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;LEARN_SOURCETYPE = [true|false]&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Determines whether learning of known or unknown sourcetypes is enabled.
    * For known sourcetypes, refer to LEARN_MODEL.
    * For unknown sourcetypes, refer to the rule:: and delayedrule:: configuration (see below).&lt;/LI&gt;
&lt;LI&gt;Setting this field to false disables CHECK_FOR_HEADER as well (see above).&lt;/LI&gt;
&lt;LI&gt;Defaults to true.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:30:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91182#M18939</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2020-09-28T09:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk insisting on Auto-finding CSV fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91183#M18940</link>
      <description>&lt;P&gt;Thanks, haven't got it to work yet, but I'll keep investigating. I think I might have to change some other things around relating to the source types.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 19:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91183#M18940</guid>
      <dc:creator>travispowell</dc:creator>
      <dc:date>2011-04-28T19:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk insisting on Auto-finding CSV fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91184#M18941</link>
      <description>&lt;P&gt;Light bulb went off when I re-read your question. You will need to use DELIMS = "\t" for tab and not " "&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 19:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91184#M18941</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-04-28T19:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk insisting on Auto-finding CSV fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91185#M18942</link>
      <description>&lt;P&gt;Thanks for the suggestions, but neither of those actually fixed it. The learn_sourcetype modifier did stop Splunk from trying to auto-define fields, but it didn't let my CONF files take over...&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 20:21:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91185#M18942</guid>
      <dc:creator>travispowell</dc:creator>
      <dc:date>2011-04-28T20:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk insisting on Auto-finding CSV fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91186#M18943</link>
      <description>&lt;P&gt;I think changes at this point would only apply to new event's and not  events already indexed.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 20:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91186#M18943</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-04-28T20:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk insisting on Auto-finding CSV fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91187#M18944</link>
      <description>&lt;P&gt;This is a test box, because I have about 10+ GB /day of this stuff to index, (short halflife) and I'm cleaning the index every time. (&amp;gt; splunk clean eventdata) I got it to work with auto field extraction by inserting my own header line, but the issue there is that the header line is included in the count, and if I have 27,804 events I don't want it to say 27,805.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 20:59:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91187#M18944</guid>
      <dc:creator>travispowell</dc:creator>
      <dc:date>2011-04-28T20:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk insisting on Auto-finding CSV fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91188#M18945</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Solved&lt;/STRONG&gt;: I capitulated. Don't fight the beast. I ended up saying screw-it, splunk, you can auto-extract field names for me. But I wrote a REGEX rule that pointed to nullQueue to remove the first line. &lt;/P&gt;

&lt;P&gt;See here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/support/forum:SplunkAdministration/4081"&gt;http://www.splunk.com/support/forum:SplunkAdministration/4081&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 22:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91188#M18945</guid>
      <dc:creator>travispowell</dc:creator>
      <dc:date>2011-04-28T22:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk insisting on Auto-finding CSV fields?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91189#M18946</link>
      <description>&lt;P&gt;You would need to clean out the etc/apps/learned/props.conf file, and reindex the data.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 02:48:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-insisting-on-Auto-finding-CSV-fields/m-p/91189#M18946</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-29T02:48:06Z</dc:date>
    </item>
  </channel>
</rss>

