resticprofile icon indicating copy to clipboard operation
resticprofile copied to clipboard

[feature] save log files as json

Open jaepetto opened this issue 10 months ago • 2 comments

It would be really nice to be able to select the output format of the logs as JSON. This would make the integration with the prometheus / loki / grafana stack a lot easier.

Being able to push / save the prometheus metrics is great from a monitoring standpoint. However, the logs are harder (since the fields are not mapped) to ingest into Loki.

jaepetto avatar Mar 04 '25 07:03 jaepetto

I'll keep it in mind during the refactoring of the logs. There's a long standing PR on parsing all the logs coming from restic: I'll have to finish it at some point 😢

Spoiler alert: there are a lot of logs to convert 😆

creativeprojects avatar Mar 05 '25 20:03 creativeprojects

Thanks for the quick reply. I really wish I could help! Unfortunately, I'm more of a python guy and my knowledge of Go is not there yet...

jaepetto avatar Mar 06 '25 14:03 jaepetto