How to log messages passing through ejabberd

I would like to register when the stanza (message and presence) was received on the ejabberd server, when it was sent to the other side (or broardcast).

It’s important for me to write down the stanza and the time it was sent and received.

Thanks.

+4
source share
4 answers

I have the same problem. I basically want to record group chats and random p2p chats, preferably in mysql. I found a module that does mysql logging, but it needs to be fixed and recompiled, and I don't know if it will be supported in the future: http://www.dp.uz.gov.ua/o.palij/mod_logdb/

There are other mods (e.g. mod_muc_log). Try to find ejabberd.im

If ejabberd is programmed (as in my case), another option will automatically include a bot entry in every conversation.

I think I will start with the 1st solution.

+1
source

This will do the job for both of you. http://www.ejabberd.im/install-bandersnatch

0
source

If you are interested in recording stanzas and presence in group chat, go with the mod_muc_log module https://www.ejabberd.im/mod_muc_log

0
source

Source: https://habr.com/ru/post/1302020/


All Articles