<?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 is my configuration not extracting CSV at index-time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110654#M23237</link>
    <description>&lt;P&gt;It's got nothing to do with the CSV, but sets the index to the name of the first folder in my source &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Sep 2014 00:39:24 GMT</pubDate>
    <dc:creator>gschmitz</dc:creator>
    <dc:date>2014-09-05T00:39:24Z</dc:date>
    <item>
      <title>Why is my configuration not extracting CSV at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110651#M23234</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;
I'm trying to use &lt;CODE&gt;INDEXED_EXTRACTIONS = CSV&lt;/CODE&gt; but for some reason it's just not working. My input looks as follows&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;CODE&gt;***SPLUNK*** sourcetype=csv source=index/host/query.sql&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;"SESSION_ID","LOGON_TIME","SCHEMA_NAME","TOTAL_SESSION_MEMORY"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;"119","2014-08-22 11:04:03","SYS","813704"&lt;/CODE&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;and my props.conf&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;CODE&gt;[csv]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;DATETIME_CONFIG=NONE&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;INDEXED_EXTRACTIONS=CSV&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;TRANSFORMS-index=index-as-first-folder&lt;/CODE&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;None of the four fields are extracted, but the &lt;CODE&gt;TRANSFORMS&lt;/CODE&gt; as well as the &lt;CODE&gt;DATETIME_CONFIG&lt;/CODE&gt; take effect. Can anybody spot a mistake?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 06:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110651#M23234</guid>
      <dc:creator>gschmitz</dc:creator>
      <dc:date>2014-09-04T06:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration not extracting CSV at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110652#M23235</link>
      <description>&lt;P&gt;Would you please share the relevant transform?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110652#M23235</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-09-04T13:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration not extracting CSV at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110653#M23236</link>
      <description>&lt;P&gt;By default, the triple-splat &lt;CODE&gt;***SPLUNK***&lt;/CODE&gt; magic cookie is not enabled for logfiles, and is probably breaking the default csv handling.  It's enabled for the first line for scripted inputs by default, if I recall correctly.  I'm not aware if if INDEXED_EXTRACTIONS can work for scripted inputs.  The design requires a certain amount of seeking around which makes it hard to do fully generic stream processing.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 22:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110653#M23236</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2014-09-04T22:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration not extracting CSV at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110654#M23237</link>
      <description>&lt;P&gt;It's got nothing to do with the CSV, but sets the index to the name of the first folder in my source &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 00:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110654#M23237</guid>
      <dc:creator>gschmitz</dc:creator>
      <dc:date>2014-09-05T00:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration not extracting CSV at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110655#M23238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;the output is actually from a script which changes the sourcetype repeatedly through the run of the script. So it's respected since the &lt;CODE&gt;DATETIME_CONFIG&lt;/CODE&gt; is applied (the event was earlier in sent to August, so I'm pretty sure).&lt;/P&gt;

&lt;P&gt;Lastly, I have another scripted input which uses TSV, but in this case I don't use &lt;CODE&gt;***SPLUNK***&lt;/CODE&gt;. Either &lt;CODE&gt;INDEXED_TRANSACTIONS&lt;/CODE&gt; is really determined based on the first line, or &lt;CODE&gt;CSV&lt;/CODE&gt; is broken. I may just change the delimiters to pipes or tabs and check it out later.&lt;/P&gt;

&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 00:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110655#M23238</guid>
      <dc:creator>gschmitz</dc:creator>
      <dc:date>2014-09-05T00:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration not extracting CSV at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110656#M23239</link>
      <description>&lt;P&gt;Ok. I tried PSV and TSV as well. No success. Opened case 187571.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 02:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110656#M23239</guid>
      <dc:creator>gschmitz</dc:creator>
      <dc:date>2014-09-05T02:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration not extracting CSV at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110657#M23240</link>
      <description>&lt;P&gt;Because the file has no header, you should use INDEXED_EXTRACTIONS = csv with the FIELD_NAMES option:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Extractfieldsfromfileheadersatindextime" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Perhaps the magic cookie will be honored later down the line or perhaps it will be treated as an event (and you can strip it with a transform to null queue).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:47:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-not-extracting-CSV-at-index-time/m-p/110657#M23240</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-09-28T19:47:34Z</dc:date>
    </item>
  </channel>
</rss>

