Hi support team,
I use Vault 1.4.3 on Docker Container(vault:latest)
Vault Run Default Logging Option is below
==> Vault server started! Log data will stream in below
How to leave a log in a file ???
for example, local.json file set below, but is not working
{
“log_level”: “debug”,
“log”:{
“file”:{
“path”:"/vault/log"
}
}
}
As far as I understand you are trying to save the Vault’s output to a file. The easiest way to save Vault operational logs to a file would be vault server -dev -log-level="trace" > ~/vault.log 2>&1, this would save both stderr and stdout to the file named vault.log in your home directory.
My example uses a -dev server, but the idea is the same.