Skip to main content

Graylog CLI

Project description

Pyglog

A CLI for Graylog API calls

You must set GRAYLOG_ADDR and GRAYLOG_TOKEN or define them in a .env file.

Example:

GRAYLOG_ADDR="https://graylog.example.com"

GRAYLOG_TOKEN="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Usage:

$ Pyglog [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • list-sidecars: List Sidecars
  • list-configurations: List Sidecar Configurations
  • list-configurations-by-tag: List Sidecar Configurations associated...
  • list-matching-sidecars: List Sidecars that contain the search string
  • get-configuration: Get details for a configuration
  • get-sidecar-by-id: Get sidecar by ID
  • get-sidecar-details: Get details for Sidecars that match the...
  • apply-configuration-sidecars: Apply a Configuration to Sidecars that...

Pyglog list-sidecars

List Sidecars

Usage:

$ Pyglog list-sidecars [OPTIONS]

Options:

  • -s, --silent: Silent mode. No output.
  • --help: Show this message and exit.

Pyglog list-configurations

List Sidecar Configurations

Usage:

$ Pyglog list-configurations [OPTIONS]

Options:

  • --help: Show this message and exit.

Pyglog list-configurations-by-tag

List Sidecar Configurations associated with tag

Arguments:

tag: The name of the tag.

Usage:

$ Pyglog list-configurations-by-tag [OPTIONS] TAG

Arguments:

  • TAG: [required]

Options:

  • -s, --silent: Silent mode. No output.
  • --help: Show this message and exit.

Pyglog list-matching-sidecars

List Sidecars that contain the search string

Arguments:

search_string: A substring that matches one or more sidecar hostnames.

Usage:

$ Pyglog list-matching-sidecars [OPTIONS] SEARCH_STRING

Arguments:

  • SEARCH_STRING: [required]

Options:

  • --help: Show this message and exit.

Pyglog get-configuration

Get details for a configuration

Usage:

$ Pyglog get-configuration [OPTIONS] CONFIGURATION_ID

Arguments:

  • CONFIGURATION_ID: [required]

Options:

  • -s, --silent: Silent mode. No output.
  • --help: Show this message and exit.

Pyglog get-sidecar-by-id

Get sidecar by ID

Usage:

$ Pyglog get-sidecar-by-id [OPTIONS] SIDECAR_ID

Arguments:

  • SIDECAR_ID: [required]

Options:

  • --help: Show this message and exit.

Pyglog get-sidecar-details

Get details for Sidecars that match the search string

Arguments:

search_string: A string that matches sidecar hostnames.

Usage:

$ Pyglog get-sidecar-details [OPTIONS] SEARCH_STRING

Arguments:

  • SEARCH_STRING: [required]

Options:

  • -s, --silent: Silent mode. No output.
  • --help: Show this message and exit.

Pyglog apply-configuration-sidecars

Apply a Configuration to Sidecars that contain the search string

Arguments:

search_string: A substring that matches one or more sidecar hostnames.

tag_id: The tag used to locate the configuration to be applied

Usage:

$ Pyglog apply-configuration-sidecars [OPTIONS] SEARCH_STRING TAG_ID

Arguments:

  • SEARCH_STRING: [required]
  • TAG_ID: [required]

Options:

  • --help: Show this message and exit.

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

pyglog_annek-0.3.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

pyglog_annek-0.3.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pyglog_annek-0.3.1.tar.gz.

File metadata

  • Download URL: pyglog_annek-0.3.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.4 Darwin/24.5.0

File hashes

Hashes for pyglog_annek-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4f8620185164c314affb8a969469c769cf6ddd5eb9e325d66d6e8b347f36c243
MD5 011592892427c5a02c8374ca84906c0c
BLAKE2b-256 cd1a1c0ac75a18aad04a3479988d92c938b9c03becb99e3de8fa6edeee6e63ef

See more details on using hashes here.

File details

Details for the file pyglog_annek-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pyglog_annek-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.4 Darwin/24.5.0

File hashes

Hashes for pyglog_annek-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 34fdc19e7830a0c448ac6c8ceb914f0eb0c34eb60e44de27951db3abec779708
MD5 dfde3306d66b92a9a15b5d9b74e2a7cb
BLAKE2b-256 8545efadec181b4bfbd22e0d38c91b4f0dbd33c465fa4dfa271937172f17c640

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