mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 15:05:57 +03:00
[GH-ISSUE #1404] An abnormally large number of event logs prevents TacticalAgent from querying or viewing the event logs #877
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#877
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NiceGuyIT on GitHub (Jan 16, 2023).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/1404
Server Info (please complete the following information):
Installation Method:
Agent Info (please complete the following information):
Describe the bug
Due to various reasons, the event logs may contain thousands or tens of thousands of records. With a large number of records, TacticalRMM returns an error: 400 bad request
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It would be nice if Tactical handled the situation gracefully. This could be done using pagination for the events, or perform the search on the agent instead of the server (or browser?). A simple solution is to return the first X records with a message that the rest were truncated due to volume. If the error is due to timeout, maybe provide a message that the agent timed out after X seconds.
Screenshots

Here's the error message when showing the last 1 days. It's unclear if it's due to the number of events or a timeout when gathering the events.
Additional context
A better error message would help with the troubleshooting effort.
As explained in the Discord thread above, querying
Win32_Productwill cause a bunch of "Windows Installer reconfigured the product" messages in the event logs. This is explained in Microsoft's KB articles. The suggestion to useWin32reg_AddRemoveProgramsis not a perfect replacement as that causes an error. There currently are 3 scripts that useWin32_Product.@NiceGuyIT commented on GitHub (Jan 16, 2023):
Possibly related NATS errors in the
agent.log.