<?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 is there a problem with logs that end in the date? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/is-there-a-problem-with-logs-that-end-in-the-date/m-p/46554#M8792</link>
    <description>&lt;P&gt;I have a log structure like so:&lt;/P&gt;

&lt;P&gt;/opt/data/logs/tomcat/foo or /opt/data/logs/tomcat/bar&lt;/P&gt;

&lt;P&gt;the logs themselves are something like log1.out.2012-05-01, etc.&lt;/P&gt;

&lt;P&gt;I've tried several monitor stanzas like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/data/logs/tomcat/.../*]
whitelist: foo\.out\.*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/data/logs/tomcat/.../foo\.out\.*]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but nothing is picking up these logs... &lt;/P&gt;</description>
    <pubDate>Tue, 08 May 2012 21:35:02 GMT</pubDate>
    <dc:creator>mmattek</dc:creator>
    <dc:date>2012-05-08T21:35:02Z</dc:date>
    <item>
      <title>is there a problem with logs that end in the date?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/is-there-a-problem-with-logs-that-end-in-the-date/m-p/46554#M8792</link>
      <description>&lt;P&gt;I have a log structure like so:&lt;/P&gt;

&lt;P&gt;/opt/data/logs/tomcat/foo or /opt/data/logs/tomcat/bar&lt;/P&gt;

&lt;P&gt;the logs themselves are something like log1.out.2012-05-01, etc.&lt;/P&gt;

&lt;P&gt;I've tried several monitor stanzas like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/data/logs/tomcat/.../*]
whitelist: foo\.out\.*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/data/logs/tomcat/.../foo\.out\.*]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but nothing is picking up these logs... &lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 21:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/is-there-a-problem-with-logs-that-end-in-the-date/m-p/46554#M8792</guid>
      <dc:creator>mmattek</dc:creator>
      <dc:date>2012-05-08T21:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: is there a problem with logs that end in the date?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/is-there-a-problem-with-logs-that-end-in-the-date/m-p/46555#M8793</link>
      <description>&lt;P&gt;I think web mangled... I had the "." characters escaped, btw&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 21:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/is-there-a-problem-with-logs-that-end-in-the-date/m-p/46555#M8793</guid>
      <dc:creator>mmattek</dc:creator>
      <dc:date>2012-05-08T21:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: is there a problem with logs that end in the date?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/is-there-a-problem-with-logs-that-end-in-the-date/m-p/46556#M8794</link>
      <description>&lt;P&gt;The monitor path looks good.&lt;/P&gt;

&lt;P&gt;Are your file starting with the same first lines ?&lt;BR /&gt;
Maybe is it the crc calculation on the first 256 chars causing the logs file to be considered as identical.&lt;BR /&gt;
A workaround for this is to add crcSalt in inputs.conf, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.2/admin/Inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.2/admin/Inputsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If there is no timestamp in the events, maybe the timestamp is extracted from the filename, please search over all time for source=&lt;EM&gt;myfile&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Finally to check what the tailing processor is saying, use the REST API&lt;BR /&gt;
&lt;A href="https://localhost:8089/services/admin/inputstatus/TailingProcessor:FileStatus"&gt;https://localhost:8089/services/admin/inputstatus/TailingProcessor:FileStatus&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2012 22:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/is-there-a-problem-with-logs-that-end-in-the-date/m-p/46556#M8794</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-05-08T22:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: is there a problem with logs that end in the date?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/is-there-a-problem-with-logs-that-end-in-the-date/m-p/46557#M8795</link>
      <description>&lt;P&gt;the rest API was great, that provided good clues.. had to do with overlapping monitor stanzas. in old environment, server had separate folders, move to new one, I changed all monitor stanzas to the same folder, but apparently only one whitelist applied!&lt;/P&gt;

&lt;P&gt;Changed to a (x.log|y.log) etc, whitelist and one stanza...&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2012 17:31:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/is-there-a-problem-with-logs-that-end-in-the-date/m-p/46557#M8795</guid>
      <dc:creator>mmattek</dc:creator>
      <dc:date>2012-05-11T17:31:07Z</dc:date>
    </item>
  </channel>
</rss>

