-
Type:
Feature Request
-
Resolution: Fixed
-
Priority:
L3 - Default
-
Affects Version/s: None
-
Component/s: backend
-
None
-
2
-
S
Optimize doesn't currently have an easy way to allow the output of logs in JSON format. While the logback file can be overridden, common JSON appenders aren't included in the Optimize dependencies, so doing this can be problematic.
We should instead aim to make this possible with minimal change. Our SRE team even want to use this already in the cloud. For more context, see https://camunda.slack.com/archives/C55U06YRG/p1643368861542019
ATs:
- Optimize can easily be configured to output JSON formatted logs
- We document an example in our public documentation
- SRE are informed after the change has been made so they/we can make the relevant changes for Optimize cloud logging
Hints:
- The logback approach gives nice logging flexibility, so integrating it into this would be ideal
- With an added dependency, we can probably do this simply with https://www.baeldung.com/java-log-json-output
Justification:
This will make our cloud log debugging much easier
HOW TO TEST:
- Set the environment variable JSON_LOGGING=true
- Run Optimize either in C7, or C8 mode
- The logs you see now should be in JSON format