Mercurial > prosody-modules
diff mod_audit/README.md @ 5650:0eb2d5ea2428
merge
| author | Stephen Paul Weber <singpolyma@singpolyma.net> |
|---|---|
| date | Sat, 06 May 2023 19:40:23 -0500 |
| parents | dc058fcc3fe3 |
| children | 561503e0c0f1 |
line wrap: on
line diff
--- a/mod_audit/README.md Wed Feb 22 22:47:45 2023 -0500 +++ b/mod_audit/README.md Sat May 06 19:40:23 2023 -0500 @@ -25,3 +25,27 @@ allowed to store the data for the amount of time these modules will store it. Note that it is currently not possible to store different event types with different expiration times. + +## Viewing the log + +You can view the log using prosodyctl. This works even when Prosody is not +running. + +For example, to view the full audit log for example.com: + +```shell +prosodyctl mod_audit example.com +``` + +To view only host-wide events (those not attached to a specific user account), +use the `--global` option (or use `--no-global` to hide such events): + +```shell +prosodyctl mod_audit --global example.com +``` + +To narrow results to a specific user, specify their JID: + +```shell +prosodyctl mod_audit user@example.com +```
