Skip to main content

A CLI for Fluentd API

Project description

fluentdctl

A Python CLI to interact with the Fluentd HTTP RPC API.

Installation

From PyPi:

pip install fluentdctl

From source:

python setup.py

Prerequisites

The fluentd RPC endpoint must be enabled in your fluentd endpoint.

If you wish to manage a fluentd instance running on another machine, the binding in the configuration cannot be to 127.0.0.1. It must either be 0.0.0.0 (all addresses) or a specific IP of the machine. Example:

<system>
  rpc_endpoint 0.0.0.0:24444
</system>

Usage

To flush the fluentd buffer:

fluentdctl flush

To stop the fluentd process:

fluentdctl stop

To flush and then stop the fluentd process:

fluentdctl flushthenstop

To reload the fluentd process and configuration:

fluentdctl reload

Specify a different host or port

The commands above will run against a local instance of fluentd running on the default port of 24444.

However with each command you can optionally specify a different remote host and/or port:

fluentdctl flush --host remote-srv-01 --port 12345

OR specify them positionally

fluentdctl flush remote-srv-01 12345

Verbose output

Finally you can also specify --verbose on any command to get additional output.

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

fluentdctl-0.0.4.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file fluentdctl-0.0.4.tar.gz.

File metadata

  • Download URL: fluentdctl-0.0.4.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fluentdctl-0.0.4.tar.gz
Algorithm Hash digest
SHA256 73e2d08440e494100a16347bb87c87544b6d636403f9fe4e2fdb46262f4f34c3
MD5 fc57467cb1c569f2678996dcd6f42218
BLAKE2b-256 83b69e6455daa0bd95b08ab8eae97e1d0173d58818bb04c66b5d381523c3ff29

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