Welcome, Guest. Please login or register.
Did you miss your activation email?
Tuesday 24 December 2024, 07:07:54 am

Login with username, password and session length

Visit the Official Endian Reference Manual  HERE
14262 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Disable logging in Endian
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Disable logging in Endian  (Read 9540 times)
fqureshi
Sr. Member
****
Offline Offline

Posts: 126


« on: Wednesday 03 August 2011, 03:23:34 pm »

Dear All,

I want to disable logging under EFW for every service e.g. havp, squid, clamav etc etc...

Any help would be much appreciated..
Logged
fqureshi
Sr. Member
****
Offline Offline

Posts: 126


« Reply #1 on: Saturday 06 August 2011, 11:26:12 am »

Following link shows how to create custom cron jobs under Endian appliance.

kb.endian.com/entry/43/


I am running following cron job under /etc/anacron.daily/


#!/bin/sh
/usr/sbin/squid -k rotate
/bin/cat /dev/null > /var/log/httpd/httpd_access
/bin/cat /dev/null > /var/log/httpd/error_log
/bin/cat /dev/null > /var/log/httpd/ssl_engine_log
/bin/cat /dev/null > /var/log/httpd/ssl_request_log
/bin/cat /dev/null > /var/log/squid/access.log
/bin/cat /dev/null > /var/log/squid/useragent.log
/bin/cat /dev/null > /var/log/squid/access.log_short

exit 0



Above are the log files which grow very frequently. I also need monitoring of the web pages accessed throughout the day thus while work time I monitor it and then this cron job truncate all the mentioned log files to remove all the entries. This helps in not taking up all the space of /var/log

Otherwise my endian box /var/log filled within one week. This results in slow service and squid never keeps running. After few minutes it is killed as there is not enough space to write logs.

I hope this will be helpful for others having the same issue.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.047 seconds with 20 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com