Privex / postfix-parser

A fast Python log parser for Postfix SMTP logs, with a simple WebUI for analyzing the logs
Other
49 stars 10 forks source link

Email log retention #10

Open JeffZwolle opened 2 years ago

JeffZwolle commented 2 years ago

Hi Privex,

I have implemented this “WebUI for email logs”-solution and am happy with it. Thanks.

What is the retention time (in days) for log entries in the RethinkDB database? Is it configurable somewhere? Or is a separate daily cronjob needed? I have zero experience with RethinkDB. Maybe you know what command is needed to delete log entries older then 90 days?

Jeff

drlight17 commented 1 year ago

Hi Privex,

I have implemented this “WebUI for email logs”-solution and am happy with it. Thanks.

What is the retention time (in days) for log entries in the RethinkDB database? Is it configurable somewhere? Or is a separate daily cronjob needed? I have zero experience with RethinkDB. Maybe you know what command is needed to delete log entries older then 90 days?

Jeff

Check my fork.. Work is still in progress however.

JeffZwolle commented 1 year ago

@drlight17 Thank you. Definitely interesting.

JeffZwolle commented 1 year ago

@drlight17

I did not see an issues tab on your repository. https://stackoverflow.com/questions/29692626/why-is-issues-tab-not-present-in-my-repos-github-page

That is why I now try to contact you here to ask my question about migration:

As you know, previously I had Privex postfix-parser installed. Now I would like to switch to drlight17 mta-log-parser. Do I need to start with an empty database or can mta-log-parser continue in the same database that postfix-parser was also using?

drlight17 commented 1 year ago

@drlight17

I did not see an issues tab on your repository. https://stackoverflow.com/questions/29692626/why-is-issues-tab-not-present-in-my-repos-github-page

Hmm... Funny. Somehow the issues were swiched off in repo settings. Thanks. I returned them. =)

That is why I now try to contact you here to ask my question about migration:

As you know, previously I had Privex postfix-parser installed. Now I would like to switch to drlight17 mta-log-parser. Do I need to start with an empty database or can mta-log-parser continue in the same database that postfix-parser was also using?

Yes, I think you can save your database as it's structure is generally the same. But to be safe do the backup before switch to mta-log-parser. Try and make an issue if there are troubles.