Skip to content

Commit

Permalink
support harvesting symlinks (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ørjan Ommundsen authored and pcfens committed Jan 15, 2017
1 parent ca733c5 commit a07192a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/prospector.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
$multiline = {},
$json = {},
$tags = [],
$symlinks = false,
) {

validate_hash($fields, $multiline, $json)
validate_array($paths, $exclude_files, $include_lines, $exclude_lines, $tags)
validate_bool($tail_files, $close_renamed, $close_removed, $close_eof, $clean_removed)
validate_bool($tail_files, $close_renamed, $close_removed, $close_eof, $clean_removed, $symlinks)

$prospector_template = $filebeat::real_version ? {
'1' => 'prospector1.yml.erb',
Expand Down
3 changes: 3 additions & 0 deletions templates/prospector5.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ filebeat:
<%- if @max_bytes -%>
max_bytes: <%= @max_bytes %>
<%- end -%>
<%- if @symlinks -%>
symlinks: <%= @symlinks %>
<%- end -%>

<%- if @json.length > 0 -%>
### JSON configuration
Expand Down

0 comments on commit a07192a

Please sign in to comment.