Update `/etc/vector/syslog.tom`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-05 13:58:48 +09:00
parent e509c531ae
commit 7ddfc88518
1 changed files with 2 additions and 9 deletions

View File

@ -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"