Skip to content

Commit 8a9c93a

Browse files
author
Richard Pijnenburg
committed
Merge pull request #1 from wiibaa/require-source
set source config as required
2 parents ece0b04 + ddd7c33 commit 8a9c93a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/logstash/filters/xml.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ class LogStash::Filters::Xml < LogStash::Filters::Base
1313
#
1414
# source => source_field
1515
#
16-
# For example, if you have the whole xml document in your @message field:
16+
# For example, if you have the whole xml document in your message field:
1717
#
1818
# filter {
1919
# xml {
2020
# source => "message"
2121
# }
2222
# }
2323
#
24-
# The above would parse the xml from the @message field
25-
config :source, :validate => :string
24+
# The above would parse the xml from the message field
25+
config :source, :validate => :string, :required => true
2626

2727
# Define target for placing the data
2828
#

0 commit comments

Comments
 (0)