diff --git a/cookbooks/vector/files/etc/vector/syslog.toml b/cookbooks/vector/files/etc/vector/syslog.toml index 0db363d..ddb3d79 100644 --- a/cookbooks/vector/files/etc/vector/syslog.toml +++ b/cookbooks/vector/files/etc/vector/syslog.toml @@ -9,7 +9,7 @@ data_dir = "/var/lib/vector" type = "remap" inputs = [ "syslog" ] source = """ - if contains(.severity, "err") { + if contains(.severity, "err") ?? false { .severity = "error" } @@ -22,7 +22,7 @@ data_dir = "/var/lib/vector" inputs = [ "reformat-syslog" ] condition = '.sev_filter == true && .msg_filter == true' -[sinks.docker-logs] +[sinks.send-logs] type = "loki" inputs = ["filter-syslog"] endpoint = "http://192.168.10.101:3100" @@ -35,10 +35,3 @@ data_dir = "/var/lib/vector" labels.job = "syslog" labels.hostname = "{{ host }}" -[sinks.file] - type = "file" - inputs = ["reformat-syslog"] - compression = "none" - path = "/tmp/vector-%Y-%m-%d.log" - encoding = "ndjson" -