Skip to content

Commit 2914a10

Browse files
committed
Fixup rule
1 parent b22fc6f commit 2914a10

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.29
1+
0.3.30

rules/cre-2025-0070/loki-log-line-long.yaml renamed to rules/cre-2025-0090/loki-log-line-long.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ rules:
55
kind: "prequel"
66
version: "1.0.0"
77
cre:
8-
id: CRE-2025-0070
8+
id: CRE-2025-0090
99
title: Loki Log Line Exceeds Max Size Limit
1010
severity: 3
11-
category: log-processing-problems
11+
category: observability-problem
1212
author: dosmanak
1313
description: |
1414
Alloy detects the Loki is dropping log lines because they exceed the configured maximum line size.
@@ -42,7 +42,6 @@ rules:
4242
- alloy
4343
- loki
4444
- logs
45-
- line-too-long
4645
- observability
4746
- grafana
4847
references:
@@ -52,7 +51,4 @@ rules:
5251
event:
5352
source: Alloy log
5453
match:
55-
- regex: >
56-
level=error msg="final error sending batch" component_path=/ component_id=loki\.write\.endpoint component=client host=.*?
57-
status=400 tenant=.*? error="server returned HTTP status 400 Bad Request \(400\): Max entry size \'(\d+)\' bytes
58-
exceeded for stream \'\{.*?\}\' while adding an entry with length \'(\d+)\' bytes"
54+
- regex: level=error(.+)final error sending batch(.+)component_id=loki\.write\.endpoint(.+)error(.+)server returned HTTP status 400 Bad Request(.+)Max entry size(.+)exceeded for stream

rules/cre-2025-0090/test.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ts=2025-05-19T07:20:05.532795855Z level=error msg="final error sending batch" component_path=/ component_id=loki.write.endpoint component=client host=logs.sanitino.eu status=400 tenant=sanitino error="server returned HTTP status 400 Bad Request (400): Max entry size '262144' bytes exceeded for stream '{app=\"XXXXX\", container=\"XXXXXX\", filename=\"/var/log/pods/XXXXX_XXXXXX-588dc4f856-cm8t2_a5297edd-2357-40ef-9636-9c3d23d5454b/XXXXXX/1.log\", job=\"XXXXXX/XXXXXXX-588dc4f856-cm8t2\", level=\"INFO\", logger=\"ZZZZZZ\", namespace=\"XXXXXX\", pod=\"XXXXXX-588dc4f856-cm8t2\", service_name=\"XXXXXX\", stage=\"NONPROD\", stream=\"stdout\"}' while adding an entry with length '9100509' bytes"

rules/tags/tags.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,3 +576,6 @@ tags:
576576
- name: schema-error
577577
displayName: Schema Error
578578
description: Missing or corrupted database schema elements such as tables or columns
579+
- name: logs
580+
displayName: Logs
581+
description: Problems with log processing

0 commit comments

Comments
 (0)