Added the field-baseline storage layer.

This commit is contained in:
larssand
2026-06-22 21:18:17 +02:00
parent 0bc51bdd0d
commit d94cb20987
3 changed files with 35 additions and 1 deletions

View File

@@ -90,6 +90,7 @@ class GraylogStreamSource:
def _event(self, record: dict[str, object]) -> LogEvent:
fields = {str(key).lower(): str(value) for key, value in record.items() if value is not None}
fields["fgai_stream"] = self.stream_label
fields["fgai_stream_id"] = self.stream
for canonical, candidates in DEFAULT_FIELD_MAP.items():
mapped = self.mapping.get(canonical)
candidates = (str(mapped),) if mapped else candidates