-
Notifications
You must be signed in to change notification settings - Fork 53
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
Collect audit logs from kube-apiserver #1666
Merged
Merged
Conversation
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
jaehnri
changed the title
Collect kube-apiserver audit logs path
Collect audit logs from kube-apiserver
Aug 18, 2023
jaehnri
force-pushed
the
kube-audit-logs
branch
from
August 28, 2023 13:41
99ef907
to
446687b
Compare
jaehnri
force-pushed
the
kube-audit-logs
branch
3 times, most recently
from
August 30, 2023 20:40
b8589cc
to
d606a5d
Compare
jaehnri
commented
Aug 30, 2023
jaehnri
force-pushed
the
kube-audit-logs
branch
from
August 31, 2023 19:34
d606a5d
to
4278152
Compare
dbason
previously requested changes
Sep 11, 2023
jaehnri
commented
Sep 12, 2023
jaehnri
force-pushed
the
kube-audit-logs
branch
2 times, most recently
from
September 15, 2023 18:41
ca40d3f
to
52c1507
Compare
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.rocha@suse.com>
Signed-off-by: Joao Henri <joao.henri@suse.com>
jaehnri
force-pushed
the
kube-audit-logs
branch
from
September 18, 2023 17:58
52c1507
to
b96a3ae
Compare
dbason
approved these changes
Sep 21, 2023
alexandreLamarre
approved these changes
Sep 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is how the audit logs are shown in OpenSearch:
As the audit log is a bit complex, I chose a few properties that make more sense to be parsed from the JSON log:
The whole log can still be checked in the body.
Testing config
For testing, I used the following Kubernetes auditLog configuration:
And this logging.opni.io configuration in a K3s cluster: