Many of the actions people and integrations take on an AnythingLLM instance leave a dated entry in its activity record, from sign-ins, failed passwords and sent chat messages to new workspaces, uploaded documents, API keys and provider changes. The Event Logs page in the instance settings lists each of those events with its type, the account behind it, and the time it occurred, which is where an administrator confirms whether and when a particular action happened.

Entries are listed newest first, ten to a page, and many carry metadata that identifies what was involved, such as the name of an uploaded file, the workspace a chat message went to, or the username and IP address of a sign-in attempt. Chat entries never include the message text or the name of a picture sent with it, and the page has no search or filter, so finding one action means matching its event type and time and then reading that entry's metadata.

Who appears in the User column depends on the instance mode. A multi-user instance names the account that acted and lets only administrator accounts read the log at all, while a single-user instance has no accounts and records every event against unknown user. On a multi-user instance that label also marks requests made with a developer API key rather than an account, entries from accounts deleted since, and entries recorded before multi-user mode was turned on. A sign-in entry's metadata still names the username after its account is deleted, and the whole history stays in AnythingLLM's database in the storage folder until someone clears it from the Event Logs page.

Steps to view event logs in AnythingLLM:

  1. Click the wrench icon at the bottom of the AnythingLLM sidebar to open the instance settings.

    On a multi-user instance, sign in with an administrator account first. AnythingLLM refuses the event log to every other account.

  2. Expand Tools in the Instance Settings sidebar.
  3. Click Event Logs under Tools.

    The Clear Event Logs button at the top of the Event Logs page deletes every entry after a single confirmation prompt, and the deletion cannot be undone. Only a new event_logs_cleared entry remains afterwards, so a backup of the storage folder is the only way to keep the earlier history.

  4. Click the row for the upload under investigation, which is document_uploaded for a file uploaded in My Documents from the upload icon beside a workspace or document_uploaded_to_chat for a document attached in a chat.

    Event Type names the kind of action, such as login_event or failed_login_invalid_password for sign-ins, sent_chat or api_sent_chat for a message sent in a workspace chat or through the developer API, and update_llm_provider for a changed LLM provider. A document attached in a chat also leaves a workspace_file_uploaded row just below its document_uploaded_to_chat row, while a picture attached in a chat travels inside the message and leaves no upload entry naming the file. Next Page below the list moves to older entries once there are more than ten.

  5. Confirm that the expanded Event Metadata names the file under investigation.

    documentName holds the file name, and Occurred At on the row above gives the time of the upload in the browser's time zone, so the same entry reads 9:08 AM in a browser set to UTC and 5:08 PM in one set to UTC+8. A document_uploaded entry adds nothing but folder, and only for a folder upload, so it names no workspace, while a document_uploaded_to_chat entry also names the workspace slug and the chat thread. A different file name means the row belongs to another upload. No row of either type for a document on any page means nobody uploaded it through My Documents or attached it in a chat since the log was last cleared, though a file sent through the developer API is logged as api_document_uploaded instead. No entry records a picture's file name, so the log cannot show whether someone attached a picture in a chat.

Share this guide