forked from helio/puppet-fluentbit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multiline parsers. Use concat to compose configuratio…
…n files. Split plugin configuration files into inputs, filters and outputs
- Loading branch information
Victor Cabezas
committed
Jul 11, 2023
1 parent
242f4a8
commit aafdaa3
Showing
10 changed files
with
125 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
# Managed by Puppet | ||
|
||
[<%= $type.upcase %>] | ||
Name <%= $name %> | ||
<% $properties.each |$key, $value| { -%> | ||
<%- if $value != undef { -%> | ||
<%- if $value =~ Array { -%> | ||
<%- $value.each |$v| { -%> | ||
<%= $key.capitalize %> <%= $v %> | ||
<%- } -%> | ||
<%- } else { -%> | ||
<%= $key.capitalize %> <%= $value %> | ||
<%- } -%> | ||
<%- } -%> | ||
<% } -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type Fluentbit::MultilineParser = Struct[{ | ||
type => Enum['regex'], | ||
rules => Array[Fluentbit::MultilineParserRule], | ||
Optional[parser] => String[1], | ||
Optional[key_content] => String[1], | ||
Optional[flush_timeout] => Integer, | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type Fluentbit::MultilineParserRule = Struct[{ | ||
state => String[1], | ||
regex => String[1], | ||
next_state => String[1], | ||
}] |