We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28a7007 commit fc5ee92Copy full SHA for fc5ee92
templates/input.yml.erb
@@ -1,18 +1,18 @@
1
<%- if @pure_array -%>
2
<%= scope['filebeat::inputs'].to_yaml() %>
3
<%- else -%>
4
-<%- if @input_type == 'filestream'
5
- parsers = @parsers
6
- if @multiline != {}
7
- parsers << {'multiline' => @multiline }
8
- end
9
- if @json != {}
10
- parsers << {'ndjson' => @json }
11
12
-end -%>
13
---
14
- type: <%= @input_type %>
15
- <%- if @input_type =~ /(filestream|journald)/ -%>
+ <%-
+ if @input_type =~ /(filestream|journald)/
+ parsers = @parsers
+ if @multiline != {}
+ parsers << {'multiline' => @multiline }
+ end
+ if @json != {}
+ parsers << {'ndjson' => @json }
+ -%>
16
id: <%= @name %>
17
<%- end -%>
18
<%- if @input_type == 'filestream' && @take_over != nil && @take_over == true -%>
0 commit comments