mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
Add basic config validation
This commit is contained in:
parent
8d98999139
commit
6ebe1e4f0e
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ class LogStash::Agent
|
|||
def register
|
||||
# TODO(sissel): warn when no inputs and no outputs are defined.
|
||||
# TODO(sissel): Refactor this madness into a config lib
|
||||
|
||||
if (["inputs", "outputs"] & @config.keys).length == 0
|
||||
$stderr.puts "No inputs or no outputs configured. This probably isn't what you want."
|
||||
end
|
||||
|
||||
# Register input and output stuff
|
||||
if @config.include?("inputs")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue