Loki Component
The loki
component can be used to send ESPHome logs to a loki server.
It requires both a HTTP Request and a Time component to be configured.
# Example configuration entry
http_request:
useragent: esphome/loki
timeout: 10s
verify_ssl: false
time:
- platform: sntp
id: sntp_time
loki:
url: http://foo.com
level: DEBUG
enabled: true
Configuration Options
- id (Optional, ID): Manually specify the ID used for code generation.
- http_request_id (Required, ID): The ID of the http_request client to use for sending logs. May be omitted if only one http_request client is configured.
- time_id (Required, ID): The ID of the time client to use for time-stamping logs. May be omitted if only one time client is configured.
- port (Optional, int): The port of the
loki
instance to send logs to. Defaults to3100
. - level (Optional, string): The highest log level to send to the loki server. Defaults to
DEBUG
. - strip (Optional, boolean): If set, remove color-codes from log messages. Defaults to
true
.