Enhancement #2288

c-icap: disable access log

Added by Giacomo Sanchietti almost 8 years ago. Updated over 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-c-icap
Target version:v6.5-beta3
Resolution: NEEDINFO:No

Description

C-icap logs all request to /var/log/c-icap/access.log. The log is not rotated and doesn't contain useful information.

Disable the access log using this option in /etc/c-icap/c-icap.conf:

AccessLog /dev/null

Related issues

Related to NethServer 6 - Enhancement #2289: squidclamav: enable logging to /var/log/c-icap/server.log CLOSED

Associated revisions

Revision 1d80dafb
Added by Giacomo Sanchietti over 7 years ago

c-icap.conf template: redirect access log to /dev/null. Refs #2288

History

#1 Updated by Giacomo Sanchietti almost 8 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20
  • Estimated time set to 0.50

#2 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 30 to 60

#4 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Packages in nethserver-testing:
  • nethserver-c-icap-1.0.1-3.0git1d80dafb.ns6.noarch.rpm

Test case

Check /var/log/c-icap/access.log remains unmodified.

#5 Updated by Davide Principi over 7 years ago

  • Assignee set to Davide Principi

#6 Updated by Davide Principi over 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 90

VERIFIED

After upgrading to
  • nethserver-c-icap-1.0.1-3.0git1d80dafb.ns6.noarch.rpm
  • nethserver-squidclamav-1.0.3-1.0gitac8ae1b7.ns6.noarch.rpm

sent an HTTP request to download an EICAR test file.

  • /var/log/c-icap/server.log:
    Thu Jan  2 16:05:47 2014, 7929/250844928, INFO squidclamav_end_of_data_handler: Virus redirection: http://davidep3.vboxnet0.tld/cgi-bin/squidclamav/clwarn.cgi?url=http://davidep1/nethserver/eicar.com.txt.gz&source=192.168.8.1&user=-&virus=stream: Eicar-Test-Signature FOUND.
    
  • /var/log/clamav/clamd.log:
    Thu Jan  2 16:05:47 2014 -> instream(local): Eicar-Test-Signature FOUND
    
  • /var/log/c-icap/access.log is unchanged

#7 Updated by Davide Principi over 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

Released in nethserver/6.5/base repository.

Also available in: Atom PDF