filviu.graylogsidecar
Ansibleロール: Graylog Sidecar
Graylog Sidecarをセットアップし、オプションでGraylog APIを通じてノードのコレクターを設定します。
必要条件 / 制限事項
- 設定にはユニークな名前が必要です。このロールは、可読性のためにIDの代わりに名前を使ってコレクター設定を行うように作成されました。
- APIの制限により、ページあたりX数の設定しか読み込めません。この数は999に設定しています。999を超えるコレクター設定がある場合は、ロールを修正してページネーションを使用し、PRを作成してください :)
- Graylog APIのバグを考慮すると、サイドカーの設定を読むには管理者レベルのアクセスが必要です。そのため、
sidecar_graylog_server_api_admin_token
を定義する必要があります。このロールを使用してノードコレクターを設定したくない場合は、スキップしても構いません。このバグが修正されれば削除します。
ロール変数
defaults/main.yml
を参照してください:
sidecar_graylog_server_api_url: example.com
sidecar_graylog_server_api_token: xxx
sidecar_graylog_server_api_admin_token: yyy
sidecar_config_template: sidecar.yml.j2
sidecar_collector_config:
- collector: collector-name
configuration: collector-config-name
設定に使用するテンプレートファイル。提供されているデフォルトは非常によく機能します。
依存関係
なし。
例 Playbook
---
- hosts: all
roles:
- role: filviu.graylogsidecar
sidecar_graylog_server_api_url: http://1.2.3.4:9000/api/
sidecar_graylog_server_api_token: xxx
sidecar_graylog_server_api_admin_token: yyy
sidecar_collector_config:
- collector: collector-name
configuration: collector-config-name
ライセンス
MIT / BSD
著者情報
このロールは、Silviu Vulcanが自身のために作成しました。
インストール
ansible-galaxy install filviu.graylogsidecar
ライセンス
Unknown
ダウンロード
17.3k
所有者
Sysadmin / DevOPS engineer. Probably doing devops before it was fashionable to be named that.