-
Notifications
You must be signed in to change notification settings - Fork 80
feat: Update Vault Audit parser to use LoggingReceiverMacro
#2052
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
Merged
franciscovalentecastro
merged 9 commits into
GoogleCloudPlatform:master
from
dyl10s:feat/vault-audit-refactor
Nov 24, 2025
Merged
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ff001fe
vault audit refactore completed
dyl10s a579059
added single line log entries
dyl10s dd7e445
updated multiline parsing
dyl10s ed4caa6
generated goldens
dyl10s 988e1d0
Merge remote-tracking branch 'origin/master' into feat/vault-audit-re…
dyl10s 9bf4663
Merge remote-tracking branch 'origin/master' into feat/vault-audit-re…
dyl10s df377f5
Merge branch 'master' into feat/vault-audit-refactor
franciscovalentecastro d84aadd
Update confgenerator goldens.
franciscovalentecastro 3fc1fa8
Update transformation test golden.
franciscovalentecastro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
1 change: 1 addition & 0 deletions
1
transformation_test/testdata/logging_processor-vault-audit/config.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| - type: vault_audit |
47 changes: 47 additions & 0 deletions
47
transformation_test/testdata/logging_processor-vault-audit/input.log
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| {"time":"2025-08-25T14:00:00.123456789Z","type":"request","auth":{"token_type":"default"},"request":{"id":"req-001","operation":"update","namespace":{"id":"root"},"path":"sys/audit/test"}} | ||
| { | ||
| "time":"2025-08-25T14:01:00.987654321Z", | ||
| "type":"request", | ||
| "auth":{ | ||
| "token_type":"root" | ||
| }, | ||
| "request":{ | ||
| "id":"req-002", | ||
| "operation":"delete", | ||
| "namespace":{ | ||
| "id":"root" | ||
| }, | ||
| "path":"sys/secrets/data" | ||
| } | ||
| } | ||
| {"time":"2025-08-25T14:02:00.111213141Z","type":"response","auth":{"token_type":"default"},"response":{"id":"res-001","status":"success"}} | ||
| { | ||
| "time":"2025-08-25T14:03:00.999888777Z", | ||
| "type":"response", | ||
| "auth":{ | ||
| "token_type":"default" | ||
| }, | ||
| "response":{ | ||
| "id":"res-002", | ||
| "status":"failure", | ||
| "error":"permission denied" | ||
| } | ||
| } | ||
| {"time":"2025-08-25T14:04:00.222333444Z","type":"request","auth":{"token_type":"default"},"request":{"id":"req-003","operation":"create","namespace":{"id":"root"},"path":"sys/audit/new"}} | ||
| { | ||
| "time":"2025-08-25T14:05:00.555666777Z", | ||
| "type":"request", | ||
| "auth":{ | ||
| "token_type":"default" | ||
| }, | ||
| "request":{ | ||
| "id":"req-004", | ||
| "operation":"update", | ||
| "namespace":{ | ||
| "id":"root" | ||
| }, | ||
| "path":"sys/audit/multi" | ||
| } | ||
| } | ||
| {"time":"2025-08-25T15:02:00.111213141Z","type":"response","auth":{"token_type":"default"},"response":{"id":"res-001","status":"success"}} | ||
| {"time":"2025-08-25T16:04:00.222333444Z","type":"request","auth":{"token_type":"default"},"request":{"id":"req-003","operation":"create","namespace":{"id":"root"},"path":"sys/audit/new"}} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.