Back

Create AuditLogs or all activities done by user in appwrite

  • 0
  • Self Hosted
  • Databases
  • Web
Suiii
28 Dec, 2023, 10:00

I want to log everything in appwrite by collection type, user did it and when

TL;DR
User wants to create AuditLogs for activities done by users in Appwrite. They are unsure about accessing the logs through the console and ask for clarification. They mention wanting to query the log collections from the client app for specific logs like login/logout and user activity. They mention having a collection for the logs and ask if the console has similar logs. The conversation continues but no specific solution is provided.
D5
28 Dec, 2023, 20:16

I think console has logs like that?

D5
28 Dec, 2023, 20:16

In the "activity" tab

D5
28 Dec, 2023, 20:17

I need some specific logs and what I make is basically having a collection for them

Suiii
30 Dec, 2023, 14:33

Can we query those collections log to client app? Log like login/logout , user activity

Suiii
30 Dec, 2023, 14:34

Can you show me how you do for the log

ideclon
31 Dec, 2023, 00:21

I would expect that would require using the Console SDK? There’s currently no docs for that, though

Suiii
4 Jan, 2024, 07:36

can you elaboate it more clearly

D5
4 Jan, 2024, 10:11

Seems yes, only console can have access

D5
4 Jan, 2024, 10:31

So alternatively you can basically create a collection for logs

Suiii
5 Jan, 2024, 06:06

can you show me

ideclon
5 Jan, 2024, 09:26

It’s not documented, and I’m pretty sure neither of us have never actually attempted to use it? I can just tell you I know it’s possible!

Suiii
5 Jan, 2024, 09:29

dont you have a case where you need to see the log ?

ideclon
5 Jan, 2024, 09:29

Nope, never had a reason to need it

Suiii
5 Jan, 2024, 09:30

okay

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more