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 Sidecarslist-configurations: List Sidecar Configurationslist-configurations-by-tag: List Sidecar Configurations associated...list-matching-sidecars: List Sidecars that contain the search stringget-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 IDget-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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyglog_annek-0.5.3.tar.gz.
File metadata
- Download URL: pyglog_annek-0.5.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caaa17b73ef14bf3a2c418eb6a0907f9bf48670bd323bd713c9fa8e6bb5ab881
|
|
| MD5 |
15b6bda75bddffbed702d2a0c546213b
|
|
| BLAKE2b-256 |
f1ad05bfa2cdd542f567d859cfba1c3058865be06250504463870b83a429b4a8
|
File details
Details for the file pyglog_annek-0.5.3-py3-none-any.whl.
File metadata
- Download URL: pyglog_annek-0.5.3-py3-none-any.whl
- Upload date:
- Size: 8.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b4b50793f930a18ee90fd61d104df1b51124c836903383799e995ff7731a854
|
|
| MD5 |
6f7dacd00cb0ca678d8140b57c3371c7
|
|
| BLAKE2b-256 |
8f16509a5e7c74937d8abd432e6003b696ac774cbd6563c185f34ad66cc86192
|