mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
9c4bac70a5
commit
cd30aa94a8
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ class LogStash::Filters::<%= classify(plugin_name) %> < LogStash::Filters::Base
|
|||
if @message
|
||||
# Replace the event message with our message as configured in the
|
||||
# config file.
|
||||
event["message"] = @message
|
||||
event.set("message", @message)
|
||||
end
|
||||
|
||||
# filter_matched should go in the last line of our successful code
|
||||
|
|
|
@ -15,7 +15,7 @@ describe LogStash::Filters::<%= classify(plugin_name) %> do
|
|||
|
||||
sample("message" => "some text") do
|
||||
expect(subject).to include("message")
|
||||
expect(subject['message']).to eq('Hello World')
|
||||
expect(subject.get('message')).to eq('Hello World')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue