Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: mfc on May 06, 2010, 06:56:59 pm

Title: Maximum log limit?
Post by: mfc on May 06, 2010, 06:56:59 pm
Just a quick question, is there any limitation on logs that eBox can keep?

I ran eBox for about a week and my HTTP Proxy log (transparent) is about 20000 pages. When I check it again (2 days later), There is no log to be view. So I purge all logs and restart. The logs start to appear again.

Any idea ?

Thanks
Title: Re: Maximum log limit?
Post by: Javier Amor Garcia on May 07, 2010, 11:30:31 am
We don't have hardcoded any limit so this must be an error.

However it could be only a web interface error or a log's database error (the latter being worse because it affects to the reports and any tool which wants to extracts the data from the database).

Because the logs have been purged we don't know. If it happens another time, please try this commands:

Code: [Select]
sudo -s
chsh -s /bin/bash ebox
su ebox -c'psql eboxlogs'
# now you will be in psql shell..
select count(*) from squid_access;
# this will return the number of entries in the squid access log
#  type Ctrl-D to exit from psql
exit   # exit ebox account
chsh -s /bin/false ebox # undo changes
exit # exit root account

If after running the count query you get a resonable number of entries is likewise a interface error.

Anyway without the database contents we could not know.

Cheers,
  Javier
Title: Re: Maximum log limit?
Post by: mfc on May 07, 2010, 12:47:55 pm
Thank you Javier for your reply, I'll try that next time it happen.