how can i search up to a month of logs

Questions and answers about how to do stuff
Post Reply
curibe
Posts: 74
Joined: 26 Feb 2014 22:38

how can i search up to a month of logs

Post by curibe »

today, my search and report tool can look up email logs up to the same week. how can i extend so i can search up thru a month.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: how can i search up to a month of logs

Post by pdwalker »

From the EFA Configuration menu, select
6) MailWatch Settings
3) Quarantine Retention

Then set the value to 30 days.

You can also edit /var/www/html/mailscanner/conf.php and change the values of:

Code: Select all

// Define how many days of emails to keep
define('RECORD_DAYS_TO_KEEP', 60);
// Define how many days to audit logs to keep
define('AUDIT_DAYS_TO_KEEP', 60);
I believe the most correct way is to use the EFA configuration. I forget how I set mine; probably the second way.

Be careful you don't run out of disk space.
curibe
Posts: 74
Joined: 26 Feb 2014 22:38

Re: how can i search up to a month of logs

Post by curibe »

i dont think this allows me to extend the search scope in "Search and Report". i would think the default settings would show 7 days. it shows the default to be 60.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: how can i search up to a month of logs

Post by pdwalker »

The search will query whatever records you have available in the database. In my case, I've set it to 60 days, after which a housekeeping process will remove the older entries automatically.

There is no reason why I cannot store more or fewer days - the choice is mine, limited by my disk space.
Post Reply