Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Paths variable does not get correctly set #2

Open
@e-alfred

Description

Hello,

I am running this playbook but the paths variable for the prospector isn't set correctly:

- name: Deploy Filebeat and send logs to Graylog server
  hosts: myserver
  vars:
    - filebeat_logstash_server: 'myserver'
    - filebeat_logstash_server_port: 5044
    - filebeat_logstash_tls_insecure: true
    - filebeat_logstash_tls: true 
    - filebeat_prospectors:
      - { paths: "/var/log/*/*.log", input_type: log, document_type: log}
  roles:
    - mediapeers.filebeat

On the machine it gets deployed to the filebeat.yml file is created like that:

 prospectors:
    # Each - is a prospector. Below are the prospector specific configurations
    -
      document_type: log
      input_type: log
      paths  - /var/log/*/*.log

instead of

 prospectors:
    # Each - is a prospector. Below are the prospector specific configurations
    -
      document_type: log
      input_type: log
      paths  
        - /var/log/*/*.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions