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.0.tar.gz (4.6 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.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyglog_annek-0.4.0.tar.gz
  • Upload date:
  • Size: 4.6 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.4.0.tar.gz
Algorithm Hash digest
SHA256 4e5394f56d1ebdcc1e63b3fb4bcc185db1fd3220aebc2fcf3a444743dab20bd0
MD5 0b252402248bdd1f6f2114351d84cf01
BLAKE2b-256 0ff41b4bbf5ec24e3643d3614d56b3281f24c1f615b2bbf2202b457e8287b219

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyglog_annek-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3440c32ee62a7914404236026d907f42c58cab8d270b4138c05402cc21a99aa
MD5 584d7b2559a400867eb9e621bc67abca
BLAKE2b-256 2dd78a58d2d60d77e9eeaaa44acf202d421812e27c7f694ee710c1d642cb29f4

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