Fixat orsaken till att Findings/Correlation blinkade bort.

This commit is contained in:
larssand
2026-06-25 18:51:04 +02:00
parent 7e6b510b9e
commit 899dbdfc84
5 changed files with 43 additions and 10 deletions

View File

@@ -12,6 +12,7 @@ DEFAULT_CONFIG: dict[str, object] = {
"graylog_streams": [],
"graylog_stream_profiles": [],
"graylog_query": "*",
"graylog_range_seconds": 3600,
"graylog_field_mapping": "",
"llm_enabled": False,
"llm_model": "",
@@ -48,6 +49,11 @@ class ConfigStore:
current[key] = bool(value)
elif key == "log_source" and value in {"local_syslog", "graylog_mcp"}:
current[key] = value
elif key == "graylog_range_seconds":
try:
current[key] = max(60, int(value))
except (TypeError, ValueError):
continue
elif key == "graylog_streams" and isinstance(value, list):
current[key] = [
{"id": str(item.get("id", "")), "title": str(item.get("title", "")), "enabled": bool(item.get("enabled"))}