Skip to main content

logalizer

Export Kibana logs as CSV from the command line — via the Kibana 7.17 Reporting API. No third-party dependencies (pure Python stdlib).

logalizer authenticates to Kibana with basic auth, submits a CSV reporting job, polls until it completes, and writes the result to stdout or a file. It is built for both humans and scripts: clean exit codes and a strict stdout/stderr separation so logalizer ... > out.csv always yields only CSV on stdout.

Install

pip install logalizer

Requires Python 3.10+.

Configure

logalizer --init

Interactive wizard that validates your credentials and lets you pick a space and index pattern from live lists. Or set environment variables:

export KIBANA_URL=https://...
export KIBANA_USERNAME=...
export KIBANA_PASSWORD=...

Usage

# test connectivity and configuration
logalizer --ping

# discover what's available
logalizer --list-spaces
logalizer --list-indices --space <space>
logalizer --list-fields --index '<pattern>'

# export logs as CSV
logalizer -i '<index-pattern>' --query 'level:error' --last 24h \
    --fields '@timestamp,level,msg' -o errors.csv

Run logalizer --help for the full reference and logalizer --help-json for a machine-readable flag schema.

Release

Publishing is automated via GitHub Actions Trusted Publishing.

One-time setup on PyPI: project settings → Publishing → add a "pending publisher" with owner isdmx, repository logalizer, workflow publish.yml, environment pypi.

After that, cut a release with:

git tag v0.1.0
git push --tags

CI builds the sdist + wheel and uploads them to PyPI automatically.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logalizer-0.2.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

logalizer-0.2.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file logalizer-0.2.0.tar.gz.

File metadata

  • Download URL: logalizer-0.2.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for logalizer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f1e441b10a26b8f47de2684d14b9998fd799c518431f59e1a6d2d70bf077a8a8
MD5 108742c0cb408924ea9b9a4cb848ddc7
BLAKE2b-256 18668a743fe2a2f0ed23d880c1929ec8222c719b535f25e3ccd4182be37f1880

See more details on using hashes here.

Provenance

The following attestation bundles were made for logalizer-0.2.0.tar.gz:

Publisher: publish.yml on isdmx/logalizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file logalizer-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: logalizer-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for logalizer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e37723bf33b94927a985e1bdeef8f142e881b8e9090e9cd2df60a31f20e9c73
MD5 0a05740ceec779ec4c3659c335671360
BLAKE2b-256 1146d161f4eeeeb1edecde277d91de535db1c1642591d24149699e3a39eca536

See more details on using hashes here.

Provenance

The following attestation bundles were made for logalizer-0.2.0-py3-none-any.whl:

Publisher: publish.yml on isdmx/logalizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page