Skip to content

Commit

Permalink
tabulation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kharkevich committed May 14, 2018
1 parent d342bab commit 4a54b69
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions templates/metricbeat.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,20 @@ output.elasticsearch:
# Array of hosts to connect to.
hosts: {{ elasticsearch_hosts | to_yaml }}

{% if metricbeat_index_name is defined %}
{% if metricbeat_index_name is defined %}
index: "{{ metricbeat_index_name }}-%{[beat.version]}-%{+yyyy.MM.dd}"
{% endif %}
{% endif %}

# Optional protocol and basic auth credentials.
protocol: "{{ elasticsearch_protocol }}"

{% if elasticsearch_username is defined %}
username: "{{ elasticsearch_username }}"
{% endif %}
{% if elasticsearch_username is defined %}
username: "{{ elasticsearch_username }}"
{% endif %}

{% if elasticsearch_password is defined %}
password: "{{ elasticsearch_password }}"
{% endif %}
{% if elasticsearch_password is defined %}
password: "{{ elasticsearch_password }}"
{% endif %}

{% elif metricbeat_output == 'logstash' %}
#----------------------------- Logstash output --------------------------------
Expand Down

0 comments on commit 4a54b69

Please sign in to comment.