Last active
February 17, 2025 20:14
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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