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.3.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.3-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pykalt-1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 64e9c51522cd86a2da240e5bccee82c9e3d12f21bfd97eb5190dff2bede15421
MD5 3e2b4def7dcc672b10f9e38029baf88d
BLAKE2b-256 99933183822840919becb82bee618ffa8c910755efb6ae7d9c89862e9ae0a3a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pykalt-1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 778dacc93bacb5acb8ce5fd1de9ffcce6d59f0808ab06535e565ce0b1d07cfe3
MD5 a31b5b1018956e5debc6081a3b68c132
BLAKE2b-256 79037853f41935c2723fc063cf829ab6d22e38ec582bb5380775c6cab60b88fb

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