Vault Audit Log doesn't attempt to use the VAULT_ADDRESS varible

Hi,

New Vault 1.6.0 cluster and I am trying to enable audit logging by running the following:

vault audit enable file file_path=/var/log/vault.d/vault_audit.log

It errors with the following:

Error enabling audit device: Put "https://127.0.0.1:8200/v1/sys/audit/file": dial tcp 127.0.0.1:8200: connect: connection refused

I have the VAULT_ADDRESS set. Not sure why it’s trying 127.0.0.1.

Ah nevermind: VAULT_ADDR is what I needed to be using

Hi! Yeah, that’s correct. Did it work?

Yes, got past the original error.

But now it’s giving a permissions error which is odd: Permission denied when i try to vault audit enable file

Gotcha. Makes more sense to continue in that thread then; I’ve just responded.