Created
July 21, 2023 13:16
This file contains hidden or 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
index="vault_logs" | |
| rex field=_raw "^(?<log_timestamp>[^ ]+ +[^ ]+ +[^ ]+) +(?<vault_server>[^ ]+) +vault: \[(?<log_level>[^]]+)\] +(?<component>[^:]+): (?<message>.+)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
index="vault_logs" | rex max_match=0 field=_raw "(?<field_key>[^=]+)=(?<field_value>(\"[^\"]+\"|[^=]+?))(?= [^=]+=|$)" | mvexpand field_key | mvexpand field_value | eval "{field_key}" = trim(field_value, "\"") | fields - field_key, field_value