Created
January 5, 2025 17:18
-
-
Save mdfranz/420eef9d5577cb73d4a5c3e4caba318a to your computer and use it in GitHub Desktop.
Vector VRL for Journald to Drop xino spam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data_dir: "/var/lib/vector" | |
sources: | |
journald: | |
type: journald | |
transforms: | |
drop_xino_events: | |
type: remap | |
inputs: | |
- journald | |
source: | | |
.overlay = contains!(.message,"overlayfs:") | |
if .overlay { | |
abort | |
} | |
sinks: | |
nats: | |
type: nats | |
inputs: | |
- drop_xino_events | |
subject: "vector.{{host}}" | |
url: nats://nats | |
encoding: | |
codec: json | |
api: | |
enabled: true | |
address: "127.0.0.1:8686" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment