Skip to content

Tune logging formats and rotating

Administrator requested to merge feature/tune-logging into master

Recreate the opencell+keycloak docker image via a Dockerfile and creating new wildfly config via the its cli. This breaks down to:

  • Upload rendered templates for logger.cli and Dockerfile
  • Update docker-compose up to make it rebuild always the custom image
  • Rotate server.log by size not by date
  • Keep access.log rotating by date as it's not expected to grow and it's useful to have accesses by date
  • Make server.log and opencell-debug.log rotate with same size criteria (add variables)

Also, taking advantatge of the situation, make things prettier for promtail/grafana/loki

  • Change existing formatters so that
    • they have both the date, not only the time
    • they separate milliseconds with '.'. This is useful for promtail to parse timestamps. Golang can't do it with a ','
Edited by Administrator

Merge request reports

Loading