You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm starting Portainer with --log-level=INFO and --log-mode=JSON on the CLI, but when the services start, if you follow in docker logs (or wherever you're pumping STDOUT) then not all messages are emitted as JSON.
We apply this setting to logs that Portainer itself generates but some of the utilities that we use (in this case, chisel) output logs in their own format directly without passing through Portainer. In saying that, we'll raise this internally to see if there's a way for us to change this.
Before you start please confirm the following.
Problem Description
I'm starting Portainer with
--log-level=INFO
and--log-mode=JSON
on the CLI, but when the services start, if you follow indocker logs
(or wherever you're pumping STDOUT) then not all messages are emitted as JSON.Expected Behavior
Every message is emitted as JSON.
Actual Behavior
portainer | {"level":"info","private-key":"/data/chisel/private-key.pem","time":1735767710,"caller":"github.com/portainer/portainer-ee/api/chisel/service.go:201","message":"found Chisel private key file on disk"}
portainer | 2025/01/01 21:41:50 server: Reverse tunnelling enabled
portainer | 2025/01/01 21:41:50 server: Fingerprint BG4P8Oii1qLobn6DosXECEcSc3tgBUKDNOYVzPuhg0I=
portainer | 2025/01/01 21:41:50 server: Listening on http://0.0.0.0:8000
portainer | {"level":"info","time":1735767710,"caller":"github.com/portainer/portainer-ee/api/datastore/postinit/migrate_post_init.go:111","message":"Executing post init migration for environment 1"}
Steps to Reproduce
portainer:
image: docker.io/portainer/portainer-ee
container_name: portainer
restart: unless-stopped
command:
- "--license-key=REDACTED"
- "--log-level=INFO"
- "--log-mode=JSON"
volumes:
- /path/to/data:/data
- /var/run/docker.sock:/var/run/docker.sock
Portainer logs or screenshots
No response
Portainer version
2.25.1
Portainer Edition
Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version
Docker 27.4.1
OS and Architecture
Debian Trixie
Browser
No response
What command did you use to deploy Portainer?
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: