mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
db2b40c9ed
commit
1520a36cd4
1 changed files with 5 additions and 0 deletions
|
@ -138,7 +138,12 @@ class LogStash::Runner < Clamp::StrictCommand
|
||||||
|
|
||||||
@settings.set("path.settings", settings_path) if settings_path
|
@settings.set("path.settings", settings_path) if settings_path
|
||||||
|
|
||||||
|
begin
|
||||||
LogStash::SETTINGS.from_yaml(LogStash::SETTINGS.get("path.settings"))
|
LogStash::SETTINGS.from_yaml(LogStash::SETTINGS.get("path.settings"))
|
||||||
|
rescue => e
|
||||||
|
puts "Warning: Could not find logstash.yml in 'path.settings' (value: \"#{LogStash::SETTINGS.get("path.settings")}\"), using internal defaults."
|
||||||
|
end
|
||||||
|
|
||||||
super(*[args])
|
super(*[args])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue