Jakub Kuchar
Jakub Kuchar

Reputation: 1665

How to get total messages sent/received per user in ejabberd?

I am trying to get total messages received/sent per user in ejabberd server + also in MUC. Can i get this info in ejabberdctl command ? Or any module available ?

Upvotes: 0

Views: 409

Answers (1)

Mickaël Rémond
Mickaël Rémond

Reputation: 9055

No, you do not have that info available. You would have to write a custom module register the hook you would like to track, for example user_send_packet, user_receive_packet. See for reference: https://docs.ejabberd.im/developer/hooks/

From that custom plugin, you can perform the storage and calculation you want.

Note that counting per user on a large server will be very consuming.

Upvotes: 1

Related Questions