mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2025-07-04 09:00
This commit is contained in:
52
roles/vector/defaults/main.yml
Normal file
52
roles/vector/defaults/main.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
|
||||
vector_base_conf:
|
||||
data_dir: /var/lib/vector
|
||||
wildcard_matching: relaxed
|
||||
sources:
|
||||
in_logs_journald:
|
||||
type: journald
|
||||
|
||||
transforms:
|
||||
route_journald:
|
||||
type: route
|
||||
inputs: ["in_logs_journald"]
|
||||
route:
|
||||
dummy: exists(.dummy) && .dummy == "true"
|
||||
iptables: exists(._TRANSPORT) && ._TRANSPORT == "kernel" && starts_with(string!(.message), "Firewall:")
|
||||
|
||||
parse_journald_dummy:
|
||||
type: remap
|
||||
inputs: ["route_journald.dummy"]
|
||||
source: |
|
||||
# Nothing to do
|
||||
|
||||
parse_journald_iptables:
|
||||
type: remap
|
||||
inputs: ["route_journald.iptables"]
|
||||
source: |
|
||||
msg = string!(.message)
|
||||
msg = replace(msg, "Firewall: ", "")
|
||||
.iptables = parse_key_value!(msg, whitespace:"strict")
|
||||
|
||||
format_logs_journald:
|
||||
type: remap
|
||||
inputs: ["route_journald._unmatched", "parse_journald_*"]
|
||||
source: |
|
||||
.group = "system"
|
||||
|
||||
format_logs_out:
|
||||
type: remap
|
||||
inputs: ['format_logs_*', 'route_*._unmatched']
|
||||
source: |
|
||||
# Nothing to do
|
||||
|
||||
sinks:
|
||||
sink_blackhole:
|
||||
type: blackhole
|
||||
inputs:
|
||||
- format_logs_out
|
||||
|
||||
vector_extra_conf: {}
|
||||
vector_host_conf: {}
|
||||
vector_conf: "{{ vector_base_conf | combine(vector_extra_conf, recursive=true) | combine(vector_host_conf, recursive=true)}}"
|
Reference in New Issue
Block a user