Skip to content

Instantly share code, notes, and snippets.

@Yiannis128
Last active February 17, 2025 20:14
Show Gist options
  • Save Yiannis128/665b0cecb9bb0dc0ffaf57a55311b7d9 to your computer and use it in GitHub Desktop.
Save Yiannis128/665b0cecb9bb0dc0ffaf57a55311b7d9 to your computer and use it in GitHub Desktop.
ClamAV VirusEvent log monitor script for passing information to custom notifier script for triggering VirusEvent
#!/usr/bin/env sh
# Get the output of the clamav-clamonacc service which is the OnAccessScan service and pipe it into
# the notifier script which will manually call the VirusEvent.
journalctl --follow -n 0 --output=cat -eu clamav-clamonacc | /opt/clamav/clamonacc-log-notifier.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment