MQTT/Remote logs possible #17291
-
Hi everyone, is it possible to get logs via MQTT or some other remote method? I'm having some silent errors happening occaisonally which are necessitating a container restart, but if left un-restarted are causing loss of operation/recording/autotracking/alerts. The issues include dropped detections (error on camera feed), too many unprocessed segments (resulting in loss of recording - see discussion 15683) and a memory error which may be related to the fact im running on linux mint (planning on migrating to debian soon to see if that fixes it) I am using Dockge to manage containers if it matters/helps. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This can be done using the api https://docs.frigate.video/integrations/api/logs-logs-service-get |
Beta Was this translation helpful? Give feedback.
-
It can also be done in docker via the logging driver
|
Beta Was this translation helpful? Give feedback.
That's great thanks for that. For anyone else here's how I setup a rest sensor to get the frigate logs into home assistant (this goes in configuration.yaml and the logs are in the attributes of the created sensor):
validate, reboot and the sensor appears as sensor.frigate_raw_logs
I have an automation that's supposed to notify by TTS when an error appears in the logs, but I haven't validated it yet. Below if anyone's interested: