Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion logstash/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
{%- if key == 'plugin_name' or key == 'cond' %} {#pass#}
{%- elif value is sameas True or value is sameas False %}
{{- output_indented(col, (key + ' => ' + value|string|lower)) }}
{%- elif value is string or value is number %}
{%- elif value is string %}
{{- output_indented(col, (key + ' => "' + value|string + '"')) }}
{%- elif value is number %}
{{- output_indented(col, (key + ' => ' + value|string)) }}
{%- elif value is mapping %}
{{- output_indented(col, (key + ' => {')) }}
{%- set col = col + logstash.indent %}
Expand Down