Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Ask Log

License: MIT Python OS PRs Welcome

Ask Log is a CLI-first assistant that helps you explore, summarize, and reason about application logs through a conversational interface. Point it at a log file, ask questions, and iterate quickly.

This project uses LangChain under the hood and supports multiple LLM providers (OpenAI, Anthropic, Google), configurable via a simple guided setup. Conversations are optionally saved so you can resume later.


Configure Start Chat Status


Features

  • Conversational log analysis over any text log
  • Local vector index (FAISS) for retrieval-augmented answers
  • Provider-agnostic via LangChain: OpenAI, Anthropic, Google Gemini
  • Persistent conversation history per-log for continuity
  • Colorful, ergonomic CLI using rich and click

Installation (local, editable)

No PyPI release yet. Install locally in editable mode for fast iteration.

1) Clone

git clone https://github.com/vandan-savla/ask-log.git
cd ask-log

2) Create and activate a virtual environment

  • Windows (PowerShell)
py -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -U pip setuptools wheel
  • macOS/Linux (bash)
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip setuptools wheel

3) Install the project in editable mode

Core installation:

pip install -e .

Quickstart

Once installed, the ask-log command is available.

# 1) Configure your preferred provider and model
ask-log configure

# 2) Check configuration
ask-log status

# 3) Analyze a log file interactively; optionally save the conversation
ask-log chat --log-file /path/to/app.log --save ~/.ask-log/last-session.json

During configuration, you’ll be prompted for provider credentials and model. Supported providers are:

  • OpenAI: OPENAI_API_KEY
  • Anthropic: ANTHROPIC_API_KEY
  • Google: GOOGLE_API_KEY

Commands

# Guided config flow (choose provider, model, and options)
ask-log configure

# Show current provider configuration
ask-log status

# Start an interactive session on a specific log file
ask-log chat --log-file /path/to/logfile.log --save path/to/convo.json

# Reset configuration (removes ~/.ask-log/config.yaml)
ask-log reset

Configuration is stored at ~/.ask-log/config.yaml.


Tips

  • Use natural language questions like “What errors do you see?”, “Summarize main events”, “Any anomalies around 10:32?”
  • Use --save to capture the conversation so you can resume context later.
  • The first run on a large log may build a local vector index; subsequent runs will be faster.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines, a suggested workflow, and development tips.


License

This project is licensed under the MIT License.

Metadata

Release files for ask-log 1.0.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ask-log 1.0.0a1
File Size Uploaded
ask_log-1.0.0a1.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ask-log 1.0.0a1
File Interpreter ABI Platform
ask_log-1.0.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 29.5 kB

Release files / ask_log-1.0.0a1.tar.gz

Download URL ask_log-1.0.0a1.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
08d617fb31e6d6d96d428369675e6d8fcffe890caed6c590e37a09e5edb6b1a2
BLAKE2b-256 checksum
How to use checksums
767cae0fb84595b408a51204290ac7a4e98a2f3a1cabdaeb92478071199c426a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.

Transparency log

Release files / ask_log-1.0.0a1-py3-none-any.whl

Download URL ask_log-1.0.0a1-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b367e1ed5f0a0ef2f9ec5578302044f23761b7a4b9cc1ddc0df8421901b641db
BLAKE2b-256 checksum
How to use checksums
dd803cdec75ad4b6424dc769a55b034b67f0fe1a8de5301dc90b6b228f99054e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page