r/devops • u/generic-d-engineer ClickOps • Oct 09 '26
Observability Script output Best Practice Contracts
Hi Devops!
I’m putting together an automation orchestration engine and I want to mature the team by standardizing script output across bash, python, powershell, tofu, etc.
So looking at a JSON output contract that anyone creating a script can adhere to. Then everyone would consume the same format. (The dream right?)
- Operation name
- Host
- Execution status (success, fail, warning, etc)
- Structured result summary
- Errors
- Duration
- Run ID (UUID)?
- A schema version (requires a lot of upkeep but can eliminate headaches down the road if maintained. If maintained being key word here lol.)
I’ve been searching around but want to hear from the experts who live in this stuff. Is there any universal or open standard people are using to define these ?
Would rather not build it myself if something people have already settled on.
Thanks for your input.
View all comments
Show parent comment
1
u/generic-d-engineer ClickOps Oct 09 '26
It’s a good point. Without a pipeline enforcement it’s gonna slip on week 1 lol
I think overall the goal is to provide a building block to reduce cognitive overhead. We’ve had a lot of success by taking personal recipes and making it a group recipe. It’s much easier to get people up to speed when what they are looking at is standardized vs a flavor of the month build.
Also from a data/observability/reporting perspective if the fields are standard it gets much easier to build on top of.
The 3AM test also is good by reducing time to resolution when the output is familiar via muscle memory vs trying to figure out the logic.