Disable user access log?

General stuff of the Tine 2.0 effort

Disable user access log?

Postby Olodin » Sun Aug 15, 2010 9:03 pm

Are there options for the access logging of user accounts?

I have a small installation of tine20 with <10 users. Some of them using ActiveSync which produces an entry in the access_log table everytime a sync is started. This access_log table is the largest table in this tine20 installation but we don't need the data (nor the wasted RAM :). An option to limit the data in this table would be nice. Any plans for that?
Regards
-Olodin
Olodin
Tine 2.0 Community Contributor
 
Posts: 84
Joined: Wed Jun 24, 2009 7:43 am

Re: Disable user access log?

Postby nelius » Mon Aug 16, 2010 12:41 pm

we should thing of automatic log cycling/trashing here
can you provide a feature request?
Cornelius Weiss
Tine 2.0 Lead Developer

Visit http://www.tine20.com for commercial support / consulting / development.
Visit http://www.officespot20.com for Tine 2.0 hosting.
User avatar
nelius
Tine 2.0 Core Developer
 
Posts: 1150
Joined: Tue Nov 06, 2007 7:25 pm

Re: Disable user access log?

Postby Olodin » Mon Aug 16, 2010 8:54 pm

nelius wrote:we should thing of automatic log cycling/trashing here
can you provide a feature request?


Jepp, filed it in http://www.tine20.org/bugtracker/view.php?id=2924.
Regards
-Olodin
Olodin
Tine 2.0 Community Contributor
 
Posts: 84
Joined: Wed Jun 24, 2009 7:43 am

Re: Disable user access log?

Postby konus » Mon Oct 08, 2012 5:47 pm

After 3 Month of usage as a single user with one mobile client my access log was over 600.000 entries long and had a size of about 160 MB . This is not good for backup. :-)

I tried to reopen the http://www.tine20.org/bugtracker/view.php?id=2924 but had no rights to do so. Should I open a new ticket?

In my opinion the solution to delete all entries with a given date by calling from command line is not optimal.
1. There only a few shared webhoster who give access to commandline.
2. I was able to help myself by creating a cron job with the commands, but I know not all webhoster allow cron jobs.
3. Using a cron job to truncate automatically is not possible, because it is always necessary to adjust the date.

I would like to wish one or two of the original solutions:
* provide possibility to truncate data in this table via a user defined limit (e.g. keep X days of data)
* option to completely disable logging in this table

Would it be possible to enhance Tinebase.clearTable to use someting like --date="older than last 10 days"
User avatar
konus
 
Posts: 85
Joined: Sun May 01, 2011 12:36 am

Re: Disable user access log?

Postby Olodin » Wed Oct 10, 2012 9:36 pm

konus wrote:Would it be possible to enhance Tinebase.clearTable to use someting like --date="older than last 10 days"


Try something like

Code: Select all
tine20.php -d --username $tineuser --method Tinebase.clearTable $i -- date=$(date -v-10d +%Y-%m-%d)


to do just that with shell/bash means (you might have to adjust the path for "date". I use this in a cronjob.

And I agree with you: there should be an option in "Admin" to do just that:
* clear all
* clear anything older than x days
* and maybe an option to store access log in plain files
Regards
-Olodin
Olodin
Tine 2.0 Community Contributor
 
Posts: 84
Joined: Wed Jun 24, 2009 7:43 am

Re: Disable user access log?

Postby ph_il » Thu Oct 11, 2012 11:23 am

please add a new feature request with your suggestions.
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.tine20.net (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3513
Joined: Fri Mar 07, 2008 11:41 am

Re: Disable user access log?

Postby konus » Thu Oct 11, 2012 4:47 pm

User avatar
konus
 
Posts: 85
Joined: Sun May 01, 2011 12:36 am


Return to General [English]

Who is online

Users browsing this forum: Exabot [Bot], factormedia and 3 guests

Startseite
NewsDemoDownloadForumWikiBlog
Support
Support at first hand!
If the forum does not help anymore ... Professional support is available directly from our Tine2.0 core Developers.

more »