<?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 Props.conf for ClamAV scan log in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-for-ClamAV-scan-log/m-p/699457#M115879</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have ClamAV running on all my linux hosts (universal forwarders) and all logsseems to be fine except clamav logs. ClamAV scan report has unusual log format (see below). I need help with how to ingest that report. Splunk (splunkd.log) shows error when I try to ingest it. I think, I need to setup a props.conf but I am not sure, how to go about doing it. This is an air gapped system, just FYI.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;EM&gt;splunkd.log &lt;/EM&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;EM&gt;ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/var/log/audit/clamav_scan_20240916_111846.log). Last time we saw this, filename was different. You may wish to use larger initCrcLen for this sourcetype or a CRC salt on this source.&lt;/EM&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Clamav scan generates log file as shown below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;SPAN class=""&gt;-----------SCAN SUMMARY--------------&lt;BR /&gt;Known Viruses: xxxxxx&lt;BR /&gt;Engine Version: x.xx.x&lt;BR /&gt;Scanned Directories: xxx&lt;BR /&gt;Scanned Files: xxxxx&lt;BR /&gt;Infected Files: x&lt;BR /&gt;Data Scanned: xxxxMB&lt;BR /&gt;Data Read: xxxxMB&lt;BR /&gt;Time:&lt;BR /&gt;Start Date: 2024:09:16 14:46:58&lt;BR /&gt;End Date: 2024:09:16 16:33:06&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2024 20:06:45 GMT</pubDate>
    <dc:creator>jkamdar</dc:creator>
    <dc:date>2024-09-18T20:06:45Z</dc:date>
    <item>
      <title>Props.conf for ClamAV scan log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-for-ClamAV-scan-log/m-p/699457#M115879</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have ClamAV running on all my linux hosts (universal forwarders) and all logsseems to be fine except clamav logs. ClamAV scan report has unusual log format (see below). I need help with how to ingest that report. Splunk (splunkd.log) shows error when I try to ingest it. I think, I need to setup a props.conf but I am not sure, how to go about doing it. This is an air gapped system, just FYI.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;EM&gt;splunkd.log &lt;/EM&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;EM&gt;ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/var/log/audit/clamav_scan_20240916_111846.log). Last time we saw this, filename was different. You may wish to use larger initCrcLen for this sourcetype or a CRC salt on this source.&lt;/EM&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Clamav scan generates log file as shown below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;SPAN class=""&gt;-----------SCAN SUMMARY--------------&lt;BR /&gt;Known Viruses: xxxxxx&lt;BR /&gt;Engine Version: x.xx.x&lt;BR /&gt;Scanned Directories: xxx&lt;BR /&gt;Scanned Files: xxxxx&lt;BR /&gt;Infected Files: x&lt;BR /&gt;Data Scanned: xxxxMB&lt;BR /&gt;Data Read: xxxxMB&lt;BR /&gt;Time:&lt;BR /&gt;Start Date: 2024:09:16 14:46:58&lt;BR /&gt;End Date: 2024:09:16 16:33:06&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 20:06:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-for-ClamAV-scan-log/m-p/699457#M115879</guid>
      <dc:creator>jkamdar</dc:creator>
      <dc:date>2024-09-18T20:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf for ClamAV scan log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-for-ClamAV-scan-log/m-p/699471#M115883</link>
      <description>&lt;P&gt;That's understandable. Your files consist mostly of a relatively constant part repeated across all files (the header and some relatively constant fields) so Splunk will be guessing that it's all the same file.&lt;/P&gt;&lt;P&gt;If the filenames are unique and the files are not rotated in any way, you can use&lt;/P&gt;&lt;PRE&gt;crcSalt=&amp;lt;SOURCE&amp;gt;&lt;/PRE&gt;&lt;P&gt;(That's actually one of the rare cases it can actually make sense).&lt;/P&gt;&lt;P&gt;Otherwise, raise initCrcLength so that it catches variable parts of the event.&lt;/P&gt;&lt;P&gt;As a side note, it seems that the event is very verbose and could use some serious editing on ingest to save on license (you don't need majority of the raw data). Additional questin is whether there should be any event breaking done within a single fioe.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 22:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-for-ClamAV-scan-log/m-p/699471#M115883</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-09-18T22:34:20Z</dc:date>
    </item>
  </channel>
</rss>

