Skip to main content

Kali/Linux auto-logging of all terminal sessions using script(1), with optional tmux, logrotate, and rclone sync.

Project description

kautolog

Auto-log everything you see in every terminal tab on Kali/Linux using script(1). Captures prompt, commands, output, ANSI colors, and ncurses apps with optional timing/replay, tmux per-pane logs, logrotate, and rclone cloud sync.

Install

Recommended:

pipx install kautolog
kautolog install

With extras:

kautolog install --with-tmux --with-sync remote:terminal-logs --interval 10

This will:

  • Hook into both ~/.bashrc and ~/.zshrc for Zsh and Bash auto-logging.
  • Install replay script into ~/.local/bin.

Replaying logs

To replay a session with timing:

replay ~/terminal-logs/2025/08/10/kali-33608-203123

To instantly dump the log without delay:

replay -i ~/terminal-logs/2025/08/10/kali-33608-203123

Uninstall

kautolog uninstall

Removes all shell hooks and scripts cleanly.

If you installed using pipx:

pipx uninstall kautolog

Log Format

Logs are saved to:

~/terminal-logs/YYYY/MM/DD/hostname-PID-TIMESTAMP.log
~/terminal-logs/YYYY/MM/DD/hostname-PID-TIMESTAMP.timing

If --with-tmux is used, each tmux pane logs independently.

License

The scripts and documentation in this project are released under the MIT License

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

kautolog-1.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

kautolog-1.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file kautolog-1.1.0.tar.gz.

File metadata

  • Download URL: kautolog-1.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for kautolog-1.1.0.tar.gz
Algorithm Hash digest
SHA256 afe01f197ec0804f0613c0a0e0ac0142ff17df9515bc3074f399d930ca5bc30c
MD5 fcba64dc07720065ebaf8f5d8c2e8947
BLAKE2b-256 0b17db74ff555f90014cde31a87a856644b9425dbaa17a0a2e32871d06ce0f93

See more details on using hashes here.

File details

Details for the file kautolog-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: kautolog-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for kautolog-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a15a80d1a983d36de83a43f92251f2837de0097b1a6c34540493a71b65659c
MD5 c0f07d090da8f6e96b2297318f2ceca2
BLAKE2b-256 5eb06105f2396bfe227e2b966d1f020af5672e55440cefd81bfdc5fa8fc124a8

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