[PR #667] [MERGED] [FEAT] Automated audit logging #3451

Closed
opened 2026-02-22 18:33:48 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/667
Author: @shatfield4
Created: 2/1/2024
Status: Merged
Merged: 2/6/2024
Merged by: @timothycarambat

Base: masterHead: 666-feat-automated-audit-logging


📝 Commits (10+)

  • e95d547 WIP event logging - new table for events and new settings view for viewing
  • 0b313e7 WIP add logging
  • dac7c35 UI for log rows
  • f7940c1 rename files to Logging to prevent getting gitignore
  • 5ba1637 add metadata for all logging events and colored badges in logs page
  • cce62e9 remove unneeded comment
  • 3352dda Merge branch 'master' into 666-feat-automated-audit-logging
  • e29ee41 merge with master
  • de4df84 merge with master, regen schema
  • 9ef71e8 rebase

📊 Changes

22 files changed (+778 additions, -34 deletions)

View changed files

📝 frontend/src/App.jsx (+5 -0)
📝 frontend/src/components/SettingsSidebar/index.jsx (+19 -2)
📝 frontend/src/models/system.js (+23 -0)
frontend/src/pages/Admin/Logging/LogRow/index.jsx (+105 -0)
frontend/src/pages/Admin/Logging/index.jsx (+138 -0)
📝 frontend/src/utils/paths.js (+3 -0)
📝 server/endpoints/admin.js (+44 -0)
📝 server/endpoints/api/admin/index.js (+6 -1)
📝 server/endpoints/api/document/index.js (+24 -17)
📝 server/endpoints/api/workspace/index.js (+16 -0)
📝 server/endpoints/chat.js (+10 -0)
📝 server/endpoints/embedManagement.js (+15 -1)
📝 server/endpoints/invite.js (+9 -0)
📝 server/endpoints/system.js (+106 -1)
📝 server/endpoints/workspaces.js (+36 -2)
📝 server/models/apiKeys.js (+0 -2)
📝 server/models/documents.js (+19 -2)
server/models/eventLogs.js (+129 -0)
📝 server/models/user.js (+33 -5)
server/prisma/migrations/20240206211916_init/migration.sql (+11 -0)

...and 2 more files

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #666

What is in this change?

Describe the changes in this PR that are impactful to the repo.

  • Implement an admin view to see all logs coming from our AnythingLLM instance
  • Implement export to csv
  • Show logs for the following events:
    • API request
    • Workspace CRUD action
    • Filesystem Change
    • Chat Sent
    • Login events
    • Attempted Login events with IP

Additional Information

Add any other context about the Pull Request here that was not captured above.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/667 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 2/1/2024 **Status:** ✅ Merged **Merged:** 2/6/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `666-feat-automated-audit-logging` --- ### 📝 Commits (10+) - [`e95d547`](https://github.com/Mintplex-Labs/anything-llm/commit/e95d547be6e1d4ffb52d8b2a2571742417cc74bf) WIP event logging - new table for events and new settings view for viewing - [`0b313e7`](https://github.com/Mintplex-Labs/anything-llm/commit/0b313e7078b3238855517c712134af902d9de91b) WIP add logging - [`dac7c35`](https://github.com/Mintplex-Labs/anything-llm/commit/dac7c355d433d59a76f2e22d3aba893857cb979c) UI for log rows - [`f7940c1`](https://github.com/Mintplex-Labs/anything-llm/commit/f7940c1fea43d57871db6e080720a5e9d5340a84) rename files to Logging to prevent getting gitignore - [`5ba1637`](https://github.com/Mintplex-Labs/anything-llm/commit/5ba16370063e0ca344691680eb656342553ad94a) add metadata for all logging events and colored badges in logs page - [`cce62e9`](https://github.com/Mintplex-Labs/anything-llm/commit/cce62e9f35fa5768160e09eb8990d45470635169) remove unneeded comment - [`3352dda`](https://github.com/Mintplex-Labs/anything-llm/commit/3352ddac1a83f1ddccf9246f7bf6108fe8d6af0e) Merge branch 'master' into 666-feat-automated-audit-logging - [`e29ee41`](https://github.com/Mintplex-Labs/anything-llm/commit/e29ee41e1af48f284f2432ac2144e94671ec7004) merge with master - [`de4df84`](https://github.com/Mintplex-Labs/anything-llm/commit/de4df840f60f314a09e0ba6c27889b6bc44a280a) merge with master, regen schema - [`9ef71e8`](https://github.com/Mintplex-Labs/anything-llm/commit/9ef71e852c8db9c3ae725744e71ad9f792755264) rebase ### 📊 Changes **22 files changed** (+778 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/App.jsx` (+5 -0) 📝 `frontend/src/components/SettingsSidebar/index.jsx` (+19 -2) 📝 `frontend/src/models/system.js` (+23 -0) ➕ `frontend/src/pages/Admin/Logging/LogRow/index.jsx` (+105 -0) ➕ `frontend/src/pages/Admin/Logging/index.jsx` (+138 -0) 📝 `frontend/src/utils/paths.js` (+3 -0) 📝 `server/endpoints/admin.js` (+44 -0) 📝 `server/endpoints/api/admin/index.js` (+6 -1) 📝 `server/endpoints/api/document/index.js` (+24 -17) 📝 `server/endpoints/api/workspace/index.js` (+16 -0) 📝 `server/endpoints/chat.js` (+10 -0) 📝 `server/endpoints/embedManagement.js` (+15 -1) 📝 `server/endpoints/invite.js` (+9 -0) 📝 `server/endpoints/system.js` (+106 -1) 📝 `server/endpoints/workspaces.js` (+36 -2) 📝 `server/models/apiKeys.js` (+0 -2) 📝 `server/models/documents.js` (+19 -2) ➕ `server/models/eventLogs.js` (+129 -0) 📝 `server/models/user.js` (+33 -5) ➕ `server/prisma/migrations/20240206211916_init/migration.sql` (+11 -0) _...and 2 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #666 ### What is in this change? Describe the changes in this PR that are impactful to the repo. - Implement an admin view to see all logs coming from our AnythingLLM instance - Implement export to csv - Show logs for the following events: - API request - Workspace CRUD action - Filesystem Change - Chat Sent - Login events - Attempted Login events with IP ### Additional Information Add any other context about the Pull Request here that was not captured above. ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated - [ ] I have tested my code functionality - [ ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:48 -05:00
yindo closed this issue 2026-02-22 18:33:49 -05:00
yindo changed title from [PR #667] [FEAT] Automated audit logging to [PR #667] [MERGED] [FEAT] Automated audit logging 2026-06-05 15:13:30 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3451