nautobot / nautobot-app-ssot

Single Source of Truth for Nautobot
https://docs.nautobot.com/projects/ssot/en/latest/
Other
34 stars 28 forks source link

Log Diff Summary as JSON #447

Open nlgotz opened 1 month ago

nlgotz commented 1 month ago

Environment

Proposed Functionality

Currently the diff calculation output outputs it as a Python dictionary. I believe this should be output as JSON for external tooling.

My primary use case is for logging purposes. In particular, Loki and LogQL have the ability to natively parse JSON ({...} | json) while it doesn't easily have the ability to parse a Python dictionary.

Use Case

I'd like to be able to parse my logs to find the diff calculation and apply some JSON to convert to proper labels.

Kircheneer commented 1 month ago

Would this help? https://github.com/nautobot/nautobot-app-ssot/pull/143