<?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: indexing a file uploaded with same filename in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40415#M7494</link>
    <description>&lt;P&gt;This doesn't quite resolve the issue of the CRC though&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2013 12:37:18 GMT</pubDate>
    <dc:creator>Drainy</dc:creator>
    <dc:date>2013-02-22T12:37:18Z</dc:date>
    <item>
      <title>indexing a file uploaded with same filename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40413#M7492</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
scenario: a log uploader application helps in uploading logs to a directory. let it be splunkdata/timeofupload/yourid/splogs/filename.&lt;BR /&gt;
regex used to monitor files are like&lt;BR /&gt;
/splunkdata/.../.../...splogs/*&lt;BR /&gt;
doubt1: will a file with different id but same filename can be indexed in splunk?&lt;BR /&gt;
doubt2: will a file with same filename but different content and is can be indexed in splunk?&lt;BR /&gt;
doubt3: will a file with same id same filename but different content can be indexed?&lt;BR /&gt;
What settings do i have to change to get these features..&lt;BR /&gt;
please help&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 11:13:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40413#M7492</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2013-02-22T11:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: indexing a file uploaded with same filename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40414#M7493</link>
      <description>&lt;P&gt;Hi smolcj,&lt;/P&gt;

&lt;P&gt;Splunk index files calculating the CRC with the first 256 characters of the file. So, if you have files with same name in different directories, Splunk checks file contents and if first 256 chars differs, they will be both indexed.&lt;BR /&gt;
To be sure, configure your input like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///splunkdata/timeofupload/*/splogs/*]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This way you are telling Splunk to monitor all timeupload subfolders which have files in splogs subfolder. To gain a better understanding, you can check the docs:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Data/Monitorfilesanddirectories"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Data/Monitorfilesanddirectories&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Stefano&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 12:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40414#M7493</guid>
      <dc:creator>stefano_guidoba</dc:creator>
      <dc:date>2013-02-22T12:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: indexing a file uploaded with same filename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40415#M7494</link>
      <description>&lt;P&gt;This doesn't quite resolve the issue of the CRC though&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 12:37:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40415#M7494</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2013-02-22T12:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: indexing a file uploaded with same filename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40416#M7495</link>
      <description>&lt;P&gt;As the previous answer says, Splunk builds a CRC of the first 256 bytes, in &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; you can edit the crcSalt to include the source path in the CRC check to ensure the same files in different locations get indexed and you could always change the initCrcLength to capture a larger portion of the file if the header changes through the file.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 12:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40416#M7495</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2013-02-22T12:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: indexing a file uploaded with same filename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40417#M7496</link>
      <description>&lt;P&gt;smolcj stated that contents are different, what may be equal is the filename (in different folders). So I guess he doesn't need to set crcSalt nor initCrcLength parameters.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 13:04:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40417#M7496</guid>
      <dc:creator>stefano_guidoba</dc:creator>
      <dc:date>2013-02-22T13:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: indexing a file uploaded with same filename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40418#M7497</link>
      <description>&lt;P&gt;how can we specify timeofupload statically? it is calculated according to the time of the log uploaded and a directory is created using that name and log is saved inside that directory&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 13:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40418#M7497</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2013-02-22T13:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: indexing a file uploaded with same filename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40419#M7498</link>
      <description>&lt;P&gt;When you define the crcsalt you define the full path of the file, the actual filename being the same makes no difference so it will still be read&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 14:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexing-a-file-uploaded-with-same-filename/m-p/40419#M7498</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2013-02-22T14:26:22Z</dc:date>
    </item>
  </channel>
</rss>

