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.
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
Structured audit logging #31931
Structured audit logging #31931
Changes from 47 commits
dfa711f
0511e09
2607d19
8e4cb49
08187bf
d54c05f
69c201a
fa579e7
1098bc2
138612a
732f021
3e38556
863b003
1c14cc7
e8c4c81
fe0ba08
723e25e
1c7f947
8fdefae
3688615
62ff075
f48ac57
4c7f335
3a9e4db
be1a6a2
9e66119
ef1d6b6
e92fb3b
131f669
5c95ec9
eb8cb15
59d3b50
b640d4f
c3644e8
b3c70ca
56fbeaa
40e98a1
76650aa
feb2529
49af157
efbeefc
a0103d2
2a3857d
9ffda34
a569107
8b8a8b8
3d6d886
ad942f1
a6aa256
cc9084f
5f87530
633ef9c
8882486
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the format of the
PatternLayout
that is assigned to the rolling file appender of the audit log trail.It prints each event on one line in the JSON format.
A field with a missing value is not printed (
%varsNotEmpty
function).All values are escaped as JSON, i.e.
{
,}
,"
and other special characters are escaped. Consequently there is no need to escape them in the code.PatternLayout
is preferred to theJSONLayout
because it allows to define the field order.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add these comments (at least the info in them) in the log4j2.properties file? This is good information and it would be nice to have it next to where this is defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, will do!