-
Committer:
chtsanti
-
Date:
2012-03-15 09:12:19 UTC
-
Revision ID:
svn-v4:a5cfe682-fa50-0410-8a04-e816b4a88288:c-icap-server/trunk:841
Set the srv_clamav:action and srv_clamav:virus attributes on virus found
- Set the srv_clamav:action request attribute to "blocked" when the server
response is blocked or to "partiallyblocked" when some of the data sent to the
user.
- Set the srv_clamav:virus request attribute to the virus name when a virus
found.
The requests attributes can be logged using the %{atributename}Sa formating
code. For example:
acl CLAMAV service srv_clamav
LogFormat myFormatClamav "%tl, %>a %im %is %I %O %Ib %Ob %{10}bph %huo [Action: %{srv_clamav:action}Sa] [Virus: %{srv_clamav:virus}Sa]"
AccessLog /var/log/c-icap-access-clamav.log myFormatClamav CLAMAV