<?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: Multiple logs being written per day; only the first log is searchable in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-logs-being-written-per-day-only-the-first-log-is/m-p/747906#M118824</link>
    <description>&lt;P&gt;Do the files have a common header?&amp;nbsp; If so, you may need to set&amp;nbsp;&lt;FONT face="courier new,courier"&gt;initCrcLength&lt;/FONT&gt; to a value larger than the header.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 23:47:52 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2025-06-12T23:47:52Z</dc:date>
    <item>
      <title>Multiple logs being written per day; only the first log is searchable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-logs-being-written-per-day-only-the-first-log-is/m-p/747895#M118823</link>
      <description>&lt;P&gt;I have an application writing multiple log files per day - the files are very similar to each other. The file naming convention is logfile_MM-DD-YYYY_hh-mm.log (e.g. logfile_06-12-2025-11-47.log).&amp;nbsp;&lt;/P&gt;&lt;P&gt;My universal forwarder is set up like this:&lt;/P&gt;&lt;P&gt;[monitor://E:\path\logfile*.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;BR /&gt;index = XXXX&lt;BR /&gt;sourcetype = XXXX&lt;BR /&gt;_meta = env::prod-new&lt;/P&gt;&lt;P&gt;The first log file of the day is searchable in Splunk, but every file after that is not visible.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried using logfile_*.log as the file name. I have also tried without the crcSalt command, but I'm not seeing any difference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 17:46:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-logs-being-written-per-day-only-the-first-log-is/m-p/747895#M118823</guid>
      <dc:creator>bspalding</dc:creator>
      <dc:date>2025-06-12T17:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple logs being written per day; only the first log is searchable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-logs-being-written-per-day-only-the-first-log-is/m-p/747906#M118824</link>
      <description>&lt;P&gt;Do the files have a common header?&amp;nbsp; If so, you may need to set&amp;nbsp;&lt;FONT face="courier new,courier"&gt;initCrcLength&lt;/FONT&gt; to a value larger than the header.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 23:47:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-logs-being-written-per-day-only-the-first-log-is/m-p/747906#M118824</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-06-12T23:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple logs being written per day; only the first log is searchable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-logs-being-written-per-day-only-the-first-log-is/m-p/747911#M118827</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233056"&gt;@bspalding&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use initCrcLength if your files are extremely similar at the start and the UF is getting confused&lt;/P&gt;&lt;P&gt;Eg:&lt;BR /&gt;Note-Change initCrcLength value based on your similar header size&lt;/P&gt;&lt;P&gt;[monitor://E:\path\logfile*.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;initCrcLength = 256&lt;BR /&gt;crcSalt = &amp;lt;UNIQUESOURCE&amp;gt;&lt;BR /&gt;index = XXXX&lt;BR /&gt;sourcetype = XXXX&lt;BR /&gt;_meta = env::prod-new&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a kudos/Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 03:45:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-logs-being-written-per-day-only-the-first-log-is/m-p/747911#M118827</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-06-13T03:45:46Z</dc:date>
    </item>
  </channel>
</rss>

