Split log search into access, application and audit dashboards
One consolidated search compromised on all three questions at once. It also
had a real defect: the Source selector carried `.+` as its All value, so
choosing "All" widened the query back to every stream in the cluster and the
scope preset only ever populated the picker. MongoDB and cert-manager showed up
in what was meant to be an application view.
Each query now carries both `job=~"${source:regex}"` and a literal job matcher,
so the selector actually restricts rather than widens.
The three kinds are subtracted from each other rather than merely filtered:
application logs exclude Keycloak's access-log and events loggers by name, the
Django container's NCSA lines by shape, and the Kong containers' stray access
lines by requiring the nginx date prefix.
Levels are read from the line rather than taken from Loki's detected_level.
That inference marks 78% of the Kong gateway output `unknown` even though every
one of those lines states [notice] or [warn], so filtering on it hid most of
the gateway's own logs. Each parser extracts the level and lowercases it, which
puts nginx's notice, Keycloak's INFO and LibreChat's info on one scale — and
removes the need for an `unknown` entry in the selector.
Applies move to server-side. Client-side apply stores a full copy of each
object in the last-applied-configuration annotation, capped at 256KB, and the
dashboard ConfigMap passed that at eight dashboards; the failure surfaced as
"metadata.annotations: Too long". Server-side apply tracks field ownership in
metadata instead, moving the ceiling to etcd's ~1MB.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1480,7 +1480,7 @@
|
||||
{
|
||||
"type": "regex",
|
||||
"options": {
|
||||
"pattern": "(?i)^(fatal|critical)$",
|
||||
"pattern": "^(fatal|FATAL|Fatal|critical|CRITICAL|Critical)$",
|
||||
"result": {
|
||||
"color": "dark-red",
|
||||
"index": 0
|
||||
@@ -1490,7 +1490,7 @@
|
||||
{
|
||||
"type": "regex",
|
||||
"options": {
|
||||
"pattern": "(?i)^error$",
|
||||
"pattern": "^(error|ERROR|Error)$",
|
||||
"result": {
|
||||
"color": "red",
|
||||
"index": 1
|
||||
@@ -1500,7 +1500,7 @@
|
||||
{
|
||||
"type": "regex",
|
||||
"options": {
|
||||
"pattern": "(?i)^warn(ing)?$",
|
||||
"pattern": "^(warn|WARN|Warn|warning|WARNING|Warning)$",
|
||||
"result": {
|
||||
"color": "orange",
|
||||
"index": 2
|
||||
@@ -1510,7 +1510,7 @@
|
||||
{
|
||||
"type": "regex",
|
||||
"options": {
|
||||
"pattern": "(?i)^info$",
|
||||
"pattern": "^(info|INFO|Info)$",
|
||||
"result": {
|
||||
"color": "green",
|
||||
"index": 3
|
||||
@@ -1520,7 +1520,7 @@
|
||||
{
|
||||
"type": "regex",
|
||||
"options": {
|
||||
"pattern": "(?i)^debug$",
|
||||
"pattern": "^(debug|DEBUG|Debug)$",
|
||||
"result": {
|
||||
"color": "blue",
|
||||
"index": 4
|
||||
|
||||
Reference in New Issue
Block a user