Skip to content

Instantly share code, notes, and snippets.

@untergeek
Last active November 12, 2015 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save untergeek/e31bedbe5b34f21d1cba to your computer and use it in GitHub Desktop.
Save untergeek/e31bedbe5b34f21d1cba to your computer and use it in GitHub Desktop.
Merged config in Logstash log output
 bin/logstash -f ../multi/ --debug --configtest
Reading config file {:file=>"logstash/agent.rb", :level=>:debug, :line=>"318", :method=>"local_config"}
The following is the content of a file {:config_file=>"/Users/buh/tmp/multi/a.conf", :level=>:debug, :file=>"logstash/agent.rb", :line=>"325", :method=>"local_config"}
input {
tcp {
port => 9500
}
}
input {
tcp {
port => 9601
}
}
input {
tcp {
port => 9702
}
}
{:level=>:debug, :file=>"logstash/agent.rb", :line=>"326", :method=>"local_config"}
Reading config file {:file=>"logstash/agent.rb", :level=>:debug, :line=>"318", :method=>"local_config"}
The following is the content of a file {:config_file=>"/Users/buh/tmp/multi/b.conf", :level=>:debug, :file=>"logstash/agent.rb", :line=>"325", :method=>"local_config"}
input {
tcp {
port => 9399
}
}
filter {
mutate {
add_field => { "a" => "b" }
}
}
{:level=>:debug, :file=>"logstash/agent.rb", :line=>"326", :method=>"local_config"}
Reading config file {:file=>"logstash/agent.rb", :level=>:debug, :line=>"318", :method=>"local_config"}
The following is the content of a file {:config_file=>"/Users/buh/tmp/multi/c.conf", :level=>:debug, :file=>"logstash/agent.rb", :line=>"325", :method=>"local_config"}
input {
tcp {
port => 9288
}
}
filter {
mutate {
add_field => { "c" => "d" }
}
}
{:level=>:debug, :file=>"logstash/agent.rb", :line=>"326", :method=>"local_config"}
Reading config file {:file=>"logstash/agent.rb", :level=>:debug, :line=>"318", :method=>"local_config"}
The following is the content of a file {:config_file=>"/Users/buh/tmp/multi/d.conf", :level=>:debug, :file=>"logstash/agent.rb", :line=>"325", :method=>"local_config"}
output {
stdout { }
}
{:level=>:debug, :file=>"logstash/agent.rb", :line=>"326", :method=>"local_config"}
The following is the merged configuration {:level=>:debug, :file=>"logstash/agent.rb", :line=>"333", :method=>"local_config"}
input {
tcp {
port => 9500
}
}
input {
tcp {
port => 9601
}
}
input {
tcp {
port => 9702
}
}
input {
tcp {
port => 9399
}
}
filter {
mutate {
add_field => { "a" => "b" }
}
}
input {
tcp {
port => 9288
}
}
filter {
mutate {
add_field => { "c" => "d" }
}
}
output {
stdout { }
}
{:level=>:debug, :file=>"logstash/agent.rb", :line=>"334", :method=>"local_config"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment