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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyglog_annek-0.4.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a52aef668fc34c5998bd6337e9bfe14c275c1b8da83b1785d0212205fd185d90
MD5 c82e6ed65c1c6af8925edea1c1656615
BLAKE2b-256 1813e3adfde685dbdcce88433347699dcbd82156b4c10e63faf5979b57f1bbaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyglog_annek-0.4.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ed8cf290c41c5d3a49b03c48d76a2899d4e933557d3e2b9ccc91f0c0e11edbba
MD5 febebb002378d7248b494641cae5ac21
BLAKE2b-256 f46a3853c3b9609aac053f01e34931a0bc13ced8632fd843c4882df432676a8b

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