mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Remove references to event v0 fields (@message)
This commit is contained in:
parent
6dc538e23f
commit
c55b493c32
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue