direktiv / vorteil

turn your applications and containers into micro virtual machines
https://direktiv.io
Apache License 2.0
174 stars 13 forks source link

Supported environmental variables in logging configuration #108

Closed wwonigkeit closed 3 years ago

wwonigkeit commented 3 years ago

Summary

Support the ability to use the pre-defined vorteil environmental variables in the logging statements (or possibly throughout the configuration file). See the below configuration for logging to an ELK stack locally:

[[logging]]
  config = ["Name=tcp" , "Host=$EXT_IP0", "Port=10100", "Format=json", "tls=Off"]
  type = "system"

[[logging]]
  config = ["Name=tcp" , "Host=$EXT_IP0", "Port=10100", "Format=json", "tls=Off"]
  type = "kernel"

Priority

High importance, but not critical

jensg-st commented 3 years ago

Environment variables can now be replaced with global environment vars and environment vars from cloud user data.