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-by-id: Get details for a configuration by ID.
  • get-configuration-by-tag: Get details for a configuration by tag name.
  • 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 with a...
  • remove-configuration-sidecars: Remove a Configuration from Sidecars with...

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:

  • -s, --silent: Silent mode. No output.
  • --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-by-id

Get details for a configuration by ID.

Usage:

$ pyglog get-configuration-by-id [OPTIONS] CONFIGURATION_ID

Arguments:

  • CONFIGURATION_ID: [required]

Options:

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

pyglog get-configuration-by-tag

Get details for a configuration by tag name.

Usage:

$ pyglog get-configuration-by-tag [OPTIONS] CONFIGURATION_TAG

Arguments:

  • CONFIGURATION_TAG: [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 with a hostname that contains 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:

  • --no-confirm: Do not prompt for confirmation.
  • --help: Show this message and exit.

pyglog remove-configuration-sidecars

Remove a Configuration from Sidecars with a hostname that contains 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 remove-configuration-sidecars [OPTIONS] SEARCH_STRING TAG_ID

Arguments:

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

Options:

  • --no-confirm: Do not prompt for confirmation.
  • --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.4.3.tar.gz (4.7 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.4.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyglog_annek-0.4.3.tar.gz
Algorithm Hash digest
SHA256 c5946bb65c53af8969aebe8b412ae4031a74614bc6bd1bb89fab3ab4e6726016
MD5 c81eeaaab0d57f12c0f44387033ba1d3
BLAKE2b-256 3ddd6d840181699f0f4dcf063e24ff16f0cfd52589f2bad6a72583d92bfb7c8e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyglog_annek-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f0bf5d5644b8c88e041f6f7bc13a106f52704f3b6210bb4b4496a6c795a52244
MD5 217763c97aaad10b048ba7158b6a3dfa
BLAKE2b-256 b1c4a3869d53555a8342314fd8a4fd07de49375d1ce1a248c3c36c8d8a708ab0

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