- make common settings like filter 'remove_tag' use the literal plugin

name instead of the text "myfilter" in examples.
This commit is contained in:
Jordan Sissel 2013-01-02 15:40:51 -08:00
parent 9d701cf6cc
commit 8a2708045a
2 changed files with 4 additions and 3 deletions

View file

@ -197,6 +197,7 @@ class LogStashConfigDocGenerator
File.open(path, "w") do |out|
html = template.result(binding)
html.gsub!("%VERSION%", LOGSTASH_VERSION)
html.gsub!("%PLUGIN%", @name)
out.puts(html)
end
else

View file

@ -28,7 +28,7 @@ class LogStash::Filters::Base < LogStash::Plugin
# syntax. Example:
#
# filter {
# myfilter {
# %PLUGIN% {
# add_tag => [ "foo_%{somefield}" ]
# }
# }
@ -42,7 +42,7 @@ class LogStash::Filters::Base < LogStash::Plugin
# syntax. Example:
#
# filter {
# myfilter {
# %PLUGIN% {
# remove_tag => [ "foo_%{somefield}" ]
# }
# }
@ -55,7 +55,7 @@ class LogStash::Filters::Base < LogStash::Plugin
# Example:
#
# filter {
# myfilter {
# %PLUGIN% {
# add_field => [ "sample", "Hello world, from %{@source}" ]
# }
# }