<?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: monitor config for log files - universal forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96840#M20196</link>
    <description>&lt;P&gt;thanks, but will this ensure logFile1.txt and LogFile2.txt are indexed but not the rotated files? ( with the above monitor command). I had an issue with double indexing in the past with crcSalt. let me check this again.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2012 16:43:00 GMT</pubDate>
    <dc:creator>lakshman237</dc:creator>
    <dc:date>2012-07-12T16:43:00Z</dc:date>
    <item>
      <title>monitor config for log files - universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96838#M20194</link>
      <description>&lt;P&gt;I have log files, say, "logFile1.txt", "logFile2.txt" in folder /home/system/logs/ . The folder also has rotated logs which are of the form "logFile1.201206021010.txt" ( yyyymmddhhmm) added.&lt;BR /&gt;
[monitor:////home/system/logs/logFile*.txt]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = mysystem&lt;BR /&gt;
index = myindex&lt;/P&gt;

&lt;P&gt;The above config brings rotated logs well to the index and sourcetype, which I donot want. I can add two stanza's one for logFile1.txt and another for logFile2.txt. However is there a better way to do this?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2012 15:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96838#M20194</guid>
      <dc:creator>lakshman237</dc:creator>
      <dc:date>2012-07-12T15:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: monitor config for log files - universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96839#M20195</link>
      <description>&lt;P&gt;You probably want to add an entry to inputs.conf for crcSalt.&lt;/P&gt;

&lt;P&gt;crcSalt=&amp;lt;\SOURCE&amp;gt;&lt;/P&gt;

&lt;P&gt;crcSalt = /&lt;STRING&gt;&lt;/STRING&gt;&lt;BR /&gt;
* Use this setting to force Splunk to consume files that have matching CRCs (cyclic redundancy checks). (Splunk only &lt;BR /&gt;
  performs CRC checks against the first few lines of a file. This behavior prevents Splunk from indexing the same &lt;BR /&gt;
  file twice, even though you may have renamed it -- as, for example, with rolling log files. However, because the &lt;BR /&gt;
  CRC is based on only the first few lines of the file, it is possible for legitimately different files to have &lt;BR /&gt;
  matching CRCs, particularly if they have identical headers.)&lt;BR /&gt;
* If set, &lt;STRING&gt; is added to the CRC.&lt;BR /&gt;
* If set to the literal string &lt;SOURCE&gt; (including the angle brackets), the full directory path to the source file &lt;BR /&gt;
  is added to the CRC. This ensures that each file being monitored has a unique CRC.   When crcSalt is invoked, &lt;BR /&gt;
  it is usually set to &lt;SOURCE&gt;.&lt;BR /&gt;
* Be cautious about using this attribute with rolling log files; it could lead to the log file being re-indexed &lt;BR /&gt;
  after it has rolled. &lt;BR /&gt;
* Defaults to empty. &lt;/SOURCE&gt;&lt;/SOURCE&gt;&lt;/STRING&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2012 15:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96839#M20195</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-07-12T15:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: monitor config for log files - universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96840#M20196</link>
      <description>&lt;P&gt;thanks, but will this ensure logFile1.txt and LogFile2.txt are indexed but not the rotated files? ( with the above monitor command). I had an issue with double indexing in the past with crcSalt. let me check this again.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2012 16:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96840#M20196</guid>
      <dc:creator>lakshman237</dc:creator>
      <dc:date>2012-07-12T16:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: monitor config for log files - universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96841#M20197</link>
      <description>&lt;P&gt;Let me know what you find out.  Logs with very large headers cause problems since Splunk doesn't detect any change. This is addressed in our next major version.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2012 20:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96841#M20197</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-07-12T20:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: monitor config for log files - universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96842#M20198</link>
      <description>&lt;P&gt;This docs section covers how Splunk handles rotated files. Essentially, when you initially add a directory for monitoring Splunk will read all of the files in there because it hasn't seen any of them before, but after that it will never re-index a rotated file because the contents will be the same as before.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Howlogfilerotationishandled"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Howlogfilerotationishandled&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2012 05:44:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitor-config-for-log-files-universal-forwarder/m-p/96842#M20198</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-13T05:44:23Z</dc:date>
    </item>
  </channel>
</rss>

