Are values from SEQ_* environment variables persisted in Seq.json? #2461
-
I'm trying to understand the Seq configuration behaviour of overriding Seq.json properties with corresponding I found seemingly related discussion in #1923 where this part of #1923 (comment) seems to be exactly on the issue I'd like to understand:
IssueIn my custom
In my PowerShell script of the entrypoint, before I run Get-ChildItem -Path env: | Where-Object { $_.Name.StartsWith('SEQ_') } | ForEach-Object {
[Environment]::SetEnvironmentVariable($_.Name, $_.Value, [EnvironmentVariableTarget]::Machine)
} I run the container with the defaults docker run -it --rm -p 5341:5341 `
-e SEQ_DATA_PATH=C:\data\seq `
-v ('{0}\data:{1}' -f $PSScriptRoot, 'C:\data') `
seq/servercore:latest The Seq startup logs seem to confirm my setup, in other words, my {"@t":"2025-07-15T08:31:27.3406605Z","@mt":"Using the supplied username {AdminUsername} for the default admin user","AdminUsername":"admin"}
{"@t":"2025-07-15T08:31:27.3413761Z","@mt":"Skipping authentication setup; `firstRun.noAuthentication` is specified","@l":"Warning"}
{"@t":"2025-07-15T08:31:27.3417859Z","@mt":"Requiring an API key for HTTP/S ingestion"} and I can browse the Seq UI at http://localhost:5341 without the authentication, no password prompt for But, in the generated "firstRun": {
"adminPasswordHash": null,
"adminPassword": null,
"adminUsername": null,
"requireAuthenticationForHttpIngestion": false,
"noAuthentication": false
}, Is this expected behaviour that, despite setting custom values via my At first, I'd have expected the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @mloskot, The behavior is described in https://datalust.co/docs/json-config. Environment variables override Seq.json, and secret store settings override everything. |
Beta Was this translation helpful? Give feedback.
Hi @mloskot,
The behavior is described in https://datalust.co/docs/json-config.
Environment variables override Seq.json, and secret store settings override everything.