<?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 Can symlink cause Splunk to index files twice? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-symlink-cause-Splunk-to-index-files-twice/m-p/105359#M22198</link>
    <description>&lt;P&gt;Due to some inconsistencies in how some of our servers use Symbolic Links (symlinks), we need to understand how Splunk would handle the following situation...&lt;/P&gt;

&lt;P&gt;/usr2/wlp_logs  is a symlink pointing to  /hosting/logs.&lt;/P&gt;

&lt;P&gt;If we have the following 2 monitor stanzas in inputs.conf...&lt;/P&gt;

&lt;P&gt;[monitor:///usr2/wlp_logs/blah/myapp.log]&lt;/P&gt;

&lt;P&gt;[monitor:///hosting/logs/blah/myapp.log]&lt;/P&gt;

&lt;P&gt;...would Splunk recognize that these are 2 references to the same file, and index it only once?  Or, would myapp.log get indexed twice?&lt;/P&gt;

&lt;P&gt;Thx for any clarification / enlightenment.&lt;/P&gt;

&lt;P&gt;mfeeny1&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2011 19:24:27 GMT</pubDate>
    <dc:creator>mfeeny1</dc:creator>
    <dc:date>2011-11-07T19:24:27Z</dc:date>
    <item>
      <title>Can symlink cause Splunk to index files twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-symlink-cause-Splunk-to-index-files-twice/m-p/105359#M22198</link>
      <description>&lt;P&gt;Due to some inconsistencies in how some of our servers use Symbolic Links (symlinks), we need to understand how Splunk would handle the following situation...&lt;/P&gt;

&lt;P&gt;/usr2/wlp_logs  is a symlink pointing to  /hosting/logs.&lt;/P&gt;

&lt;P&gt;If we have the following 2 monitor stanzas in inputs.conf...&lt;/P&gt;

&lt;P&gt;[monitor:///usr2/wlp_logs/blah/myapp.log]&lt;/P&gt;

&lt;P&gt;[monitor:///hosting/logs/blah/myapp.log]&lt;/P&gt;

&lt;P&gt;...would Splunk recognize that these are 2 references to the same file, and index it only once?  Or, would myapp.log get indexed twice?&lt;/P&gt;

&lt;P&gt;Thx for any clarification / enlightenment.&lt;/P&gt;

&lt;P&gt;mfeeny1&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2011 19:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-symlink-cause-Splunk-to-index-files-twice/m-p/105359#M22198</guid>
      <dc:creator>mfeeny1</dc:creator>
      <dc:date>2011-11-07T19:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can symlink cause Splunk to index files twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-symlink-cause-Splunk-to-index-files-twice/m-p/105360#M22199</link>
      <description>&lt;P&gt;Would like to know this as well.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 22:31:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-symlink-cause-Splunk-to-index-files-twice/m-p/105360#M22199</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2014-01-09T22:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can symlink cause Splunk to index files twice?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-symlink-cause-Splunk-to-index-files-twice/m-p/105361#M22200</link>
      <description>&lt;P&gt;Symbolic links cannot cause splunk to index files twice, unless you make use of crcSalt to force splunk to consider files different via their filenames.&lt;/P&gt;

&lt;P&gt;Monitoring both the symbolic link and the target of the link is not a good practice however.  You will get uncertain behavior as to which name splunk finds the data under.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Oct 2014 07:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-symlink-cause-Splunk-to-index-files-twice/m-p/105361#M22200</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2014-10-11T07:58:21Z</dc:date>
    </item>
  </channel>
</rss>

