Update `/etc/vector/syslog.tom`.
This commit is contained in:
parent
e509c531ae
commit
7ddfc88518
|
@ -9,7 +9,7 @@ data_dir = "/var/lib/vector"
|
||||||
type = "remap"
|
type = "remap"
|
||||||
inputs = [ "syslog" ]
|
inputs = [ "syslog" ]
|
||||||
source = """
|
source = """
|
||||||
if contains(.severity, "err") {
|
if contains(.severity, "err") ?? false {
|
||||||
.severity = "error"
|
.severity = "error"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ data_dir = "/var/lib/vector"
|
||||||
inputs = [ "reformat-syslog" ]
|
inputs = [ "reformat-syslog" ]
|
||||||
condition = '.sev_filter == true && .msg_filter == true'
|
condition = '.sev_filter == true && .msg_filter == true'
|
||||||
|
|
||||||
[sinks.docker-logs]
|
[sinks.send-logs]
|
||||||
type = "loki"
|
type = "loki"
|
||||||
inputs = ["filter-syslog"]
|
inputs = ["filter-syslog"]
|
||||||
endpoint = "http://192.168.10.101:3100"
|
endpoint = "http://192.168.10.101:3100"
|
||||||
|
@ -35,10 +35,3 @@ data_dir = "/var/lib/vector"
|
||||||
labels.job = "syslog"
|
labels.job = "syslog"
|
||||||
labels.hostname = "{{ host }}"
|
labels.hostname = "{{ host }}"
|
||||||
|
|
||||||
[sinks.file]
|
|
||||||
type = "file"
|
|
||||||
inputs = ["reformat-syslog"]
|
|
||||||
compression = "none"
|
|
||||||
path = "/tmp/vector-%Y-%m-%d.log"
|
|
||||||
encoding = "ndjson"
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue