Skip to content

Commit fc5ee92

Browse files
dforstepcfens
authored andcommitted
Update fix for #352 to address journald as well.
1 parent 28a7007 commit fc5ee92

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

templates/input.yml.erb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<%- if @pure_array -%>
22
<%= scope['filebeat::inputs'].to_yaml() %>
33
<%- 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-
end
12-
end -%>
134
---
145
- type: <%= @input_type %>
15-
<%- if @input_type =~ /(filestream|journald)/ -%>
6+
<%-
7+
if @input_type =~ /(filestream|journald)/
8+
parsers = @parsers
9+
if @multiline != {}
10+
parsers << {'multiline' => @multiline }
11+
end
12+
if @json != {}
13+
parsers << {'ndjson' => @json }
14+
end
15+
-%>
1616
id: <%= @name %>
1717
<%- end -%>
1818
<%- if @input_type == 'filestream' && @take_over != nil && @take_over == true -%>

0 commit comments

Comments
 (0)