sqlinsight-pro/tests/SQLInsight.Rules.Tests
Søren Eggert Lundsteen Olsen e6840e40d7 SQL Server error log without elevated rights (8a)
A five-minute collector reads important error log entries from the best
source the agent's rights allow: the error log itself (xp_readerrorlog,
only with securityadmin), the default trace's ErrorLog and Audit Login
Failed events (optional ALTER TRACE), or the exception and connectivity
ring buffers (VIEW SERVER STATE: numbers and severity, failed logins).
Repetitions are summed per error; the watermark is the newest entry
read, because the default trace is buffered. Stored in
insight.ErrorLogEvents (migration 0013, EventDays), resumed after restart.

Rules SQLI-LOG-001..006: corruption 823/824/825, I/O over 15 s (833),
severe errors (17+), login failure bursts (configurable), stack dumps and
AG errors; rules needing the log text are "not measurable" with the
right to grant. Page /instanser/{navn}/fejllog (menu Overvågning) and
GET /api/v1/instances/{name}/error-log with messages redacted.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 10:30:41 +02:00
..
AnomalyRuleTests.cs Fase 2: baselines and anomaly detection 2026-09-29 08:01:11 +00:00
AvailabilityRuleTests.cs Fase 2: Always On availability groups and SQL Agent jobs 2026-09-29 07:53:49 +00:00
ConfigurationRuleTests.cs Configuration page with change log 2026-10-02 08:12:26 +02:00
CustomRuleTests.cs Rules the version does not support are "not applicable", not "not measurable" 2026-10-01 16:05:39 +02:00
DatabaseRuleTests.cs Separate "check by hand" from "not relevant" for version-gated rules 2026-10-02 09:59:50 +02:00
ErrorLogRuleTests.cs SQL Server error log without elevated rights (8a) 2026-10-02 10:30:41 +02:00
IndexRuleTests.cs Fase 2: index and statistics analysis 2026-09-29 07:47:53 +00:00
ManagedInstanceTests.cs Rules the version does not support are "not applicable", not "not measurable" 2026-10-01 16:05:39 +02:00
OperationRuleTests.cs Long operations, full-text rules and statement activity 2026-10-02 09:07:29 +02:00
PatchLevelRuleTests.cs Fase 2: Azure SQL Managed Instance, docs and rule catalog test 2026-09-29 08:23:40 +00:00
PerformanceRuleTests.cs Disk speed per drive: IOPS, MB/s and latency 2026-10-02 08:03:11 +02:00
PlanRuleTests.cs Separate "check by hand" from "not relevant" for version-gated rules 2026-10-02 09:59:50 +02:00
PrivilegeRuleTests.cs Privilege audit: sysadmin and server roles with AD unfolding 2026-10-02 08:39:56 +02:00
QueryStoreRuleTests.cs Rules the version does not support are "not applicable", not "not measurable" 2026-10-01 16:05:39 +02:00
RuleCatalogTests.cs SQL Server error log without elevated rights (8a) 2026-10-02 10:30:41 +02:00
RuleEngineTests.cs Rules the version does not support are "not applicable", not "not measurable" 2026-10-01 16:05:39 +02:00
SQLInsight.Rules.Tests.csproj Fase 0: solution structure, capability model, rule engine, least-privilege script 2026-09-29 05:40:49 +00:00
SupportLifecycleRuleTests.cs Fase 2: Azure SQL Managed Instance, docs and rule catalog test 2026-09-29 08:23:40 +00:00
TestInstances.cs Fase 1: collectors and rule pack (41 rules) 2026-09-29 06:17:08 +00:00