remove the group in raw

This commit is contained in:
larssand
2026-06-30 12:30:50 +02:00
parent 4f968eeed5
commit f95a861eb6
3 changed files with 9 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ class GraylogAggregateSource:
}
schema_variants: list[dict[str, object]] = []
metric_keys = [key for key in ("metrics", "series") if key in properties]
group_keys = [key for key in ("groupings", "group_by", "groups", "fields") if key in properties]
group_keys = [key for key in ("groupings", "fields") if key in properties]
if properties and metric_keys:
for metric_key in metric_keys:
for metric_value in (["count()"], ["count"], [{"function": "count"}]):