nephelaiio.filebeat

nephelaiio.filebeat

ビルドステータス Ansible Galaxy

ファイルビートをインストールおよび設定するためのansibleロール

ロール変数

入力パラメータの最新リストは、defaultsファイルを参照してください。

依存関係

詳細については、依存関係の設定を確認してください。

例プレイブック

- name: ファイルビートのデプロイ
  hosts: servers
  vars:
    filebeat_package_state: latest
    filebeat_conf_manage: true
    filebeat_conf:
      fields:
        environment: development
      inputs:
        - type: log
          paths:
            - /var/log/system.log
            - /var/log/wifi.log
        - type: log
          paths:
            - "/var/log/nginx/*.log"
          fields:
            application: nginx
      output:
        elasticsearch:
          enabled: true
          hosts:
            - http://localhost:9200
      setup:
        dashboards:
          enabled: true
          beat: filebeat
          always_kibana: true
        template:
          enabled: true
        kibana:
          host: http://localhost:80
  roles:
     - role: nephelaiio.filebeat

テスト

ロールバリデーションテストを実行するには、環境にDockerがインストールされていることを確認してください。追加のPython依存関係は、requirementsファイルに記載されています。

ロールは以下のディストリビューション(Dockerイメージ)でテストされています:

  • Ubuntu Jammy
  • Ubuntu Focal
  • Debian Bookworm
  • Debian Bullseye
  • Rocky Linux 9

molecule testコマンドを使用して、ソースから直接ロールをテストできます。

ライセンス

このプロジェクトは、MITライセンスの条件の下でライセンスされています。

プロジェクトについて

An Ansible role to install and configure filebeat

インストール
ansible-galaxy install nephelaiio.filebeat
ライセンス
mit
ダウンロード
46.7k
所有者