Skip to content
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 opened this issue Jun 20, 2016 · 0 comments
Open

Paths variable does not get correctly set #2

e-alfred opened this issue Jun 20, 2016 · 0 comments

Comments

@e-alfred
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant