Skip to main content

Explain your DevOps logs instantly using OpenAI with a colorful CLI.

Project description

Explain-Log 🔥

Understand your DevOps and Data Engineering logs instantly — powered by OpenAI.


🚀 What is Explain-Log?

Explain-Log is a colorful, intelligent command-line tool that reads any log file,
explains the root cause of errors, and suggests fixes — powered by OpenAI's GPT models.

✅ Supports piped input from Kubernetes, Airflow, Spark, Jenkins, Terraform logs and more.
✅ Provides clear warnings before sending logs externally.
✅ Bright, beautiful CLI interface built with rich.


📦 Installation

Option 1: From PyPI

pip install explain-log

Option 2: Using Docker

docker pull yourdockerhubusername/explain-log

🛠 Usage

Explain a log file:

explain-log my-error.log

Explain logs piped from another command:

k logs my-pod-name -n my-namespace | explain-log --force

⚠️ When using piped input, you must add --force to skip manual confirmation.


⚙️ Options

Option Description
--no-mask Disable auto-masking of sensitive data (emails, IPs, URLs)
--force Skip security confirmation (required when piping logs)

🎨 CLI Features

  • Beautiful bright colored output
  • Safety-first design (asks for confirmation before sending logs to OpenAI)
  • Professional banners, warnings, and success messages
  • Markdown-formatted explanations
  • Works with stdin piping (|) or from log files

🛡 Security Notice

Explain-Log by default warns you and asks for your consent before sending any logs to OpenAI servers.
You control when and what is sent.


🐳 Docker Usage

Run without installing Python:

docker run --rm yourdockerhubusername/explain-log --help

You can also pipe logs:

k logs mypod | docker run --rm -i yourdockerhubusername/explain-log --force

(Use -i to pass piped input into Docker.)


📄 License

This project is licensed under the MIT License.


✨ Author

Made with ❤️ by [Your Name]
GitHub: github.com/yourgithub

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

explain_log-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

explain_log-0.1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file explain_log-0.1.1.tar.gz.

File metadata

  • Download URL: explain_log-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for explain_log-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0642e47b99380aadb997da690cd1817ad19b80758538923e5eb1e2fcb36a8b39
MD5 b01a1fd07aad61692a0c6d4a21773711
BLAKE2b-256 f0b272c69dacab21d51f5722f96959b5f0f8290c5c83108f302a3557ea5b6e31

See more details on using hashes here.

File details

Details for the file explain_log-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: explain_log-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for explain_log-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6e5add4d4c63bcf18aab8f537034d0fc678bb784e2ed93e1a93d1680ab1d08f
MD5 b9fdb5a394a00900aeee9b6d24c73b55
BLAKE2b-256 9954886369eb9197ea00c120ed5065c94a9779f1d76c038697d2ca9c1f351162

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