Skip to content

Instantly share code, notes, and snippets.

@mdfranz
Created January 5, 2025 17:18
Show Gist options
  • Save mdfranz/420eef9d5577cb73d4a5c3e4caba318a to your computer and use it in GitHub Desktop.
Save mdfranz/420eef9d5577cb73d4a5c3e4caba318a to your computer and use it in GitHub Desktop.
Vector VRL for Journald to Drop xino spam
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