<?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: Data being auto-indexed as .tmp file instead of .csv in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329832#M61159</link>
    <description>&lt;P&gt;Change your inputs.conf file to add a &lt;CODE&gt;whitelist&lt;/CODE&gt; attribute to your monitor stanza.  Something like &lt;CODE&gt;whitelist = \.csv$&lt;/CODE&gt; should limit Splunk to CSV files.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 20:56:59 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2017-09-11T20:56:59Z</dc:date>
    <item>
      <title>Data being auto-indexed as .tmp file instead of .csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329831#M61158</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have an auto-index set up on a folder in my splunk directory and the past two times when a user copied their data in the .csv form into the folder- this was indexed as .tmp file. How can I fix this problem and ensure .tmp files are not auto-indexed? &lt;/P&gt;

&lt;P&gt;The .tmp file was indexed and the actual .csv never got indexed. I deleted the .tmp source type data out of splunk and I deleted the source file out of the directory, renamed it and copied it back over and the data still didn't get indexed this way. I ended up having to just manually upload the file&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 19:54:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329831#M61158</guid>
      <dc:creator>katzr</dc:creator>
      <dc:date>2017-09-11T19:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data being auto-indexed as .tmp file instead of .csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329832#M61159</link>
      <description>&lt;P&gt;Change your inputs.conf file to add a &lt;CODE&gt;whitelist&lt;/CODE&gt; attribute to your monitor stanza.  Something like &lt;CODE&gt;whitelist = \.csv$&lt;/CODE&gt; should limit Splunk to CSV files.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 20:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329832#M61159</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-09-11T20:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data being auto-indexed as .tmp file instead of .csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329833#M61160</link>
      <description>&lt;P&gt;can I do that for just one specific index though?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 20:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329833#M61160</guid>
      <dc:creator>katzr</dc:creator>
      <dc:date>2017-09-11T20:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data being auto-indexed as .tmp file instead of .csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329834#M61161</link>
      <description>&lt;P&gt;You do it in &lt;CODE&gt;inputs.conf&lt;/CODE&gt; for each &lt;CODE&gt;[monitor://...]&lt;/CODE&gt; stanza.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 05:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329834#M61161</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-12T05:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data being auto-indexed as .tmp file instead of .csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329835#M61162</link>
      <description>&lt;P&gt;The reason that it did not index it after you fixed it is because by default, Splunk does not consider the file name as uniquely identifying a source (because many systems rotate logs in place and to not do so would mean whenever a log file got rotated to a backup name, it would get indexed again).  So Splunk considers &lt;CODE&gt;/your/path/to/file_foo.csv&lt;/CODE&gt; to be the same file as &lt;CODE&gt;/your/path/to/file_bar.tmp&lt;/CODE&gt; as long as the first X bytes and last Y bytes match.   You can change this behaviour by setting &lt;CODE&gt;crcSalt=&amp;lt;SOURCE&amp;gt;&lt;/CODE&gt; (yes, use &lt;EM&gt;literally&lt;/EM&gt; that exact string) in your &lt;CODE&gt;inputs.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 05:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329835#M61162</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-12T05:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data being auto-indexed as .tmp file instead of .csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329836#M61163</link>
      <description>&lt;P&gt;Hey @katzr! If @woodcock or @richgalloway solved your problem, please don't forget to accept an answer! You can upvote posts as well. (Karma points will be awarded for either action.) Happy Splunking!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 00:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-being-auto-indexed-as-tmp-file-instead-of-csv/m-p/329836#M61163</guid>
      <dc:creator>lfedak_splunk</dc:creator>
      <dc:date>2017-09-13T00:40:58Z</dc:date>
    </item>
  </channel>
</rss>

