Created
September 3, 2020 12:48
-
-
Save andrewkroh/de7362fc62a741276ab6e7c616a72302 to your computer and use it in GitHub Desktop.
Journalbeat and Hashicorp Vault
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
journalbeat.inputs: | |
id: vault.service | |
include_matches: | |
- systemd.unit=vault.service | |
processors: | |
- add_fields: | |
target: event | |
fields: | |
module: vault | |
dataset: vault.log | |
- convert: | |
when.regexp.message: '^\s*{' | |
fields: | |
- from: message | |
to: event.original | |
mode: rename | |
- decode_json_fields: | |
fields: | |
- event.original | |
target: vault.log | |
- convert: | |
ignore_missing: true | |
mode: rename | |
fields: | |
- {from: 'vault.log.@message', to: message} | |
- {from: 'vault.log.@module', to: log.logger} | |
- {from: 'vault.log.@level', to: log.level} | |
- timestamp: | |
ignore_missing: true | |
field: 'vault.log.@timestamp' | |
layouts: | |
- "2006-01-02T15:04:05.999Z" | |
test: | |
- "2020-05-07T21:44:47.82217971Z" | |
- drop_fields: | |
fields: [vault.log.@timestamp] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_format = "json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment