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 to Sidecars with a...

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 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 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.1.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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyglog_annek-0.4.1.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.1.tar.gz
Algorithm Hash digest
SHA256 440f4f5ada957db561c62c17b5290b9d97a210918edd5b2e502f03f12582aa11
MD5 3221e7dc04279b26acf12aa7c88d4e12
BLAKE2b-256 7b13ba891183a4bf92b97e0b1cbdd7bf658dbd97d00989cab415d49a1c2f36c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyglog_annek-0.4.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64410eeac25cd7342959be2e1c42ddd2b9598c9d089a605cd09b15cf069073da
MD5 46c333ffd05a30193e240a2742d3e187
BLAKE2b-256 eed72ad2496c67cc447e0ba4e696633796e67b4502cbcf4d4128236374501162

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