-
Notifications
You must be signed in to change notification settings - Fork 8
/
mqtt-pg-logger.yaml.sample
22 lines (20 loc) · 1022 Bytes
/
mqtt-pg-logger.yaml.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
logging:
# "-p" (== --print) makes logging obsolet (espcically if you running a systemd service)
# log_file: "./__test__/mqtt-logs.log"
log_level: "info" # debug, info, warning, error
mqtt:
client_id: "mqtt-pg-logger-1234"
host: "<your_broker>"
port: 1883
protocol: 4 # 3==MQTTv31 (default), 4==MQTTv311, 5==default/MQTTv5,
# filter_message_id_0: True
subscriptions: ["smarthome/#", "smarthome2/#"] # topics
skip_subscription_regexes: [] # regex for topics
database:
host: "localhost"
port: 5435
user: "<your database user>"
password: "<your database password>"
database: "<your database name>"
# clean_up_after_days: 14 # default: 14; disable == 0
# table_name: "journal" # default: "journal"