Skip to main content

KALT is a Kubernetes Audit Logs Toolkit. It alows analyzing Kubernetes audit.log files.

Project description

KALT stands for Kubernetes Audit Logs Toolkit

A tool to analyse existing audit.log files, possibly helping to write meaningful audit_policy.yml.

Install

$ pip install pykalt

Usage

$ kalt -f 'objectRef.resource!=leases' -k user.username -k verb -k objectRef.resource -l 10 audit-*
user.username                                                verb    objectRef.resource      count    percent
-----------------------------------------------------------  ------  --------------------  -------  ---------
ncp                                                          update  nsxlocks                 8395      13.77
system:apiserver                                             get     endpoints                5047       8.28
system:apiserver                                             get     endpointslices           5047       8.28
kubelet                                                      get     nodes                    4946       8.11
system:serviceaccount:kube-system:resourcequota-controller   get                              3364       5.52
system:serviceaccount:kube-system:generic-garbage-collector  get                              3364       5.52
system:serviceaccount:kube-system:metrics-server             create  subjectaccessreviews     1728       2.83
kubelet                                                      watch   configmaps               1132       1.86
kubelet                                                      watch   secrets                   892       1.46
kubelet                                                      list    nodes                     840       1.38

Events count: 60957 (14.96% of 407338 events)
Period: 14.02 hours from 2025-05-22 17:22:43 to 2025-05-23 07:23:53

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pykalt-1.2.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pykalt-1.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file pykalt-1.2.tar.gz.

File metadata

  • Download URL: pykalt-1.2.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pykalt-1.2.tar.gz
Algorithm Hash digest
SHA256 a2c26d819803a9494f40df0adb7735e3dbd237e0d6c1b5b2f6a55238917291be
MD5 60f98bbe2dcca85987589a05c5aff330
BLAKE2b-256 35969fda1631f473757fe79f5e795b5f9936969e0c833fffd175e2f41a7c3128

See more details on using hashes here.

File details

Details for the file pykalt-1.2-py3-none-any.whl.

File metadata

  • Download URL: pykalt-1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pykalt-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8622106b0e7171419a4171398c102c4ccb04f6d524a15771a28312c9c2933dc4
MD5 ed5d41254d2ec47a47cb750f11b26189
BLAKE2b-256 e326ea5f2c16b3fb6f36939062e3c95977c0dbb1f1c76131df9fb124b7192140

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page