Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature-Request: sturctured logging / log-format json #15

Open
s256 opened this issue Sep 9, 2021 · 0 comments
Open

Feature-Request: sturctured logging / log-format json #15

s256 opened this issue Sep 9, 2021 · 0 comments

Comments

@s256
Copy link

s256 commented Sep 9, 2021

Unfortunately go is not a language I am experienced in, but I love your project and wanted to drop the idea of adding a flag to enable structured logging.

In my setup your snapshot agent logs to a file thanks to systemd

ExecStart=/usr/local/bin/vault_raft_snapshot_agent
ExecReload=/usr/local/bin/vault_raft_snapshot_agent
StandardOutput=append:/var/log/vault_snapshots.log

Filebeat is harvesting the file and sends the data to elasticsearch, which is a data source in my grafana.
Backups are run hourly, so if there is no successful backup in the last hour according to the logs, grafana triggers an alert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant