Vector Parser for Blocky #1075
eminentv
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Made a parser for Docker Blocky Deployment.
`sources:
src-docker:
type: docker_logs
auto_partial_merge: true
docker_host: "unix:///var/run/docker.sock"
host_key: host
transforms:
trns-docker-blocky:
type: remap
inputs:
- src-docker
source: |-
. = parse_json!(.message)
trns-route-blocky:
type: route
inputs:
- trns-docker-blocky
route:
querylog: .prefix == "queryLog"
cache: .prefix == "list_cache"
server: .prefix == "server"
bootstrap: .prefix == "bootstrap"
sinks:
sinks-blocky-querylog:
type: file
inputs:
- trns-route-blocky.querylog
encoding:
codec: native_json
timestamp_format: rfc3339
path: /var/log/vector/blocky-querylog-%Y-%m-%d.log
sinks-blocky-cache:
type: file
inputs:
- trns-route-blocky.cache
encoding:
codec: native_json
timestamp_format: rfc3339
path: /var/log/vector/blocky-cache-%Y-%m-%d.log
sinks-blocky-server:
type: file
inputs:
- trns-route-blocky.server
encoding:
codec: native_json
timestamp_format: rfc3339
path: /var/log/vector/blocky-server-%Y-%m-%d.log
sinks-blocky-bootstrap:
type: file
inputs:
- trns-route-blocky.bootstrap
encoding:
codec: native_json
timestamp_format: rfc3339
path: /var/log/vector/blocky-bootstrap-%Y-%m-%d.log
sinks-blocky-unmatched:
type: file
inputs:
- trns-route-blocky._unmatched
encoding:
codec: native_json
timestamp_format: rfc3339
path: /var/log/vector/blocky-unmatched-%Y-%m-%d.log `
Beta Was this translation helpful? Give feedback.
All reactions