Skip to content

Logging mechanism #3522

Answered by fatih-acar
cdot65 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

Infrahub can run in production mode using the INFRAHUB_PRODUCTION parameter as described in the configuration reference: https://docs.infrahub.app/reference/configuration

This will enable JSON format for logs. You can take a look at a sample promtail configuration here that shows how to parse the logs (either in production or non-production mode): https://github.com/opsmill/infrahub/blob/develop/development/promtail/config.yml

The Helm Chart does not include anything specific to logging yet but you can still make use of the above points for your needs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cdot65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants