Can anyone look at (and test) this module (it logs user messages to mnesia).
All messages can be read from ejabberd web admin interface.
Thanks.
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
Can anyone look at (and test) this module (it logs user messages to mnesia).
All messages can be read from ejabberd web admin interface.
Thanks.
Tested, and it works
Tested, and it works :) I've added a page for it on Contributions:mod_logmnesia .
Since it stores all messages for a certain day on a Mnesia table, this module is primarily intended for those Jabber servers on business that require to log their users' conversations for a certain amount of time, right?
After several months of use, the database will be full with several tables. Right now the tables for the oldest days are purged manually using an ejabberd_ctl command.
What do you think of this feature request?
The module accepts a new option: {purge_older_days, Days}. Everyday, the module checks that option. If Days == false (that's the default value), then do nothing. But if Days is an integer, it calls purge_old_records(_, ["purge-old-records", Days]), so everyday the oldest days are purged automatically.
Re: Tested, and it works
Tested, and it works :) I've added a page for it on Contributions:mod_logmnesia .
Thanks :).
Since it stores all messages for a certain day on a Mnesia table, this module is primarily intended for those Jabber servers on business that require to log their users' conversations for a certain amount of time, right?
Indeed.
After several months of use, the database will be full with several tables. Right now the tables for the oldest days are purged manually using an ejabberd_ctl command.
I use following thing:
# crontab -l -u ejabberd
1 7 * * * /usr/local/bin/ejabberdctl ejabberd@isc-monitor purge-old-records 356
What do you think of this feature request?
The module accepts a new option: {purge_older_days, Days}.
Ok, I will try to implement this :)
sql
what about logging to sql database?
Yeah, this is very
Yeah, this is very actually
Where can I find odbc log plugin?
mod_logmnesia update
What do you think of this feature request?
The module accepts a new option: {purge_older_days, Days}.
Done. With many other improvements :).
Changelog from initial version:
* added purge_older_days option
* the time of a message writes now accurate within microseconds for proper sorting of messages recieved within a second
* added ru and uk translations
* added manual selective erasing of messages through web admin
* added groupchat option
* added sort by date in common vhost and user view
* lot of bugfixes