Skip to content

Commit

Permalink
metaconfig: logstash service add beats input
Browse files Browse the repository at this point in the history
  • Loading branch information
stdweird committed Feb 1, 2016
1 parent c4605c6 commit 26cc947
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ prefix "/software/components/metaconfig/services/{/etc/logstash/conf.d/logstash.
"ssl_key", "/software/components/ccm/key_file",
)));

"input/plugins" = append(nlist("beats", nlist(
"type", "beats",
"port", 5043,
"ssl_certificate", "/software/components/ccm/cert_file",
"ssl_key", "/software/components/ccm/key_file",
"ssl", true,
"congestion_threshold", 20,
)));

"filter/conditionals" = append(nlist(
"type", "ifelseif",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ input \{$
^\s{8}ssl_key => "/software/components/ccm/key_file"$
^\s{8}port => 5043$
^\s{4}\}$
^\s{4}beats \{$
^\s{8}type => "beats"$
^\s{8}ssl_certificate => "/software/components/ccm/cert_file"$
^\s{8}ssl_key => "/software/components/ccm/key_file"$
^\s{8}port => 5043$
^\s{8}ssl => true$
^\s{8}congestion_threshold => 20$
^\s{4}\}$
^\}$ ### COUNT 3
filter \{$
^\s{4}if \[type\] == 'remotegelf' \{$
Expand Down
8 changes: 8 additions & 0 deletions ncm-metaconfig/src/main/metaconfig/logstash/pan/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,20 @@ type logstash_input_lumberjack = {
"ssl_key_passphrase" ? string
};

@{ beats input }
type logstash_input_beats = {
include logstash_input_lumberjack
'ssl' ? boolean
'congestion_threshold' ? long(0..)
};

type logstash_input_plugin = {
"file" ? logstash_input_file
"gelf" ? logstash_input_gelf
"tcp" ? logstash_input_tcp
"udp" ? logstash_input_udp
"lumberjack" ? logstash_input_lumberjack
"beats" ? logstash_input_beats
} with length(SELF) == 1;


Expand Down

0 comments on commit 26cc947

Please sign in to comment.