Author Topic: Maximum log limit?  (Read 1134 times)

mfc

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Maximum log limit?
« 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

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Maximum log limit?
« Reply #1 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

mfc

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Maximum log limit?
« Reply #2 on: May 07, 2010, 12:47:55 pm »
Thank you Javier for your reply, I'll try that next time it happen.