46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
# Example hotdog configuration
|
|
---
|
|
global:
|
|
listen:
|
|
address: '127.0.0.1'
|
|
port: 6514
|
|
tls:
|
|
cert: './contrib/cert.pem'
|
|
key: './contrib/cert-key.pem'
|
|
# Swap these values out in order to listen for plaintext syslog
|
|
#port: 1514
|
|
status:
|
|
address: '127.0.0.1'
|
|
port: 8585
|
|
kafka:
|
|
# Maximum number of messages to buffer internally while waiting for Kafka
|
|
# responses
|
|
buffer: 1024
|
|
conf:
|
|
bootstrap.servers: '127.0.0.1:9092'
|
|
# Default topic to log messages to that are not otherwise mapped
|
|
topic: 'test'
|
|
metrics:
|
|
statsd: 'localhost:8125'
|
|
|
|
rules:
|
|
# Match JSON content which has a meta.topic value, e.g.
|
|
# {"meta":{"topic" : "foo"}}
|
|
- jmespath: 'meta.topic'
|
|
field: msg
|
|
actions:
|
|
- type: merge
|
|
json:
|
|
meta:
|
|
hotdog:
|
|
version: '{{version}}'
|
|
timestamp: '{{iso8601}}'
|
|
|
|
- type: stop
|
|
|
|
# Catch-all, send everything else to a "logs-unknown" topic
|
|
- regex: '.*'
|
|
field: msg
|
|
actions:
|
|
- type: stop
|