Skip to main content

Tail kubernetes pods logs

Project description

TailK

pyversions PyPi Status PyPI - Downloads GitHub Workflow Status Codecov

Introduction

TaikK is a small utility to tail logs from multiple Kubernetes pods.

Installation

TailK requires Python 3.8+ and kubectl available in your shell.

Using pip

$ pip install tailk

Using Homebrew

$ brew update
$ brew tap ffaraone/birre
$ brew install ffaraone/birre/tailk

Usage

Basic usage

$ tailk pattern1 [...]

where pattern1 is any valid Python regular expression.

Multiple patterns are combined with a logical OR.

Advanced usage

You may want to highlight portions of the log. In this case you can provide highlighting patterns in the following way:

$ tailk pattern1 --highlight hl-pattern-1 [--highlight hl-pattern-2]

where hl-pattern-1 is any valid Python regular expression.

You can also customize the style for highlight. In this case your patterns must be specified using named capturing groups

$ tailk pattern1 --highlight "(?P<hello>HELLO)" --style "hello:underline magenta"

License

TailK is released under the Apache License Version 2.0.

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

tailk-0.1.0.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

tailk-0.1.0-py3-none-any.whl (9.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page