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.2.tar.gz (5.9 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.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: explain_log-0.1.2.tar.gz
  • Upload date:
  • Size: 5.9 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.2.tar.gz
Algorithm Hash digest
SHA256 354bfe826e85e8c259631587d43c501e81de7959b27b167b33fc263edea2cb0a
MD5 ea30571d1459c8acea75355553eba416
BLAKE2b-256 45ce1119ed020c4fb8fbaf2b61d521e3f58401b846f4194d7cfef47eff1ad300

See more details on using hashes here.

File details

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

File metadata

  • Download URL: explain_log-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 411803adf4799af847c6fb80f4c33f675fd4d0ed7271f89ce25de3c12e0d33ec
MD5 2d43d2525041a174a81adaed2d842309
BLAKE2b-256 fd6bd7514bab43418bfd6f6477ca1e73c1d23d29dbb78608d256745bce557bf8

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