Remove references to event v0 fields (@message)

This commit is contained in:
Jordan Sissel 2013-06-19 10:07:38 -07:00
parent 6dc538e23f
commit c55b493c32
3 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@ describe LogStash::Filters::Environment do
ENV["MY_ENV_VAR"] = "hello world"
sample({ "@type" => "bar", "@message" => "fizz", "@fields" => { } }) do
sample("type" => "bar", "message" => "fizz") do
insist { subject["newfield"] }.nil?
end
end

View file

@ -9,7 +9,7 @@ describe "grok known timeout failures" do
config <<-'CONFIG'
filter {
grok {
match => [ "@message", "%{SYSLOGBASE:ts1} \[\#\|%{TIMESTAMP_ISO8601:ts2}\|%{DATA} for %{PATH:url} = %{POSINT:delay} ms.%{GREEDYDATA}" ]
match => [ "message", "%{SYSLOGBASE:ts1} \[\#\|%{TIMESTAMP_ISO8601:ts2}\|%{DATA} for %{PATH:url} = %{POSINT:delay} ms.%{GREEDYDATA}" ]
}
}
CONFIG

View file

@ -8,7 +8,7 @@ describe LogStash::Filters::Json do
config <<-CONFIG
filter {
json {
# Parse @message as JSON, store the results in the 'data' field'
# Parse message as JSON, store the results in the 'data' field'
source => "message"
}
}
@ -21,7 +21,7 @@ describe LogStash::Filters::Json do
end
end
describe "parse @message into a target field" do
describe "parse message into a target field" do
config <<-CONFIG
filter {
json {