Skip to content

Commit

Permalink
Test: resolve integration failure due ECS mode
Browse files Browse the repository at this point in the history
otherwise this causes a LogStash::ConfigurationError:
`GeoIP Filter in ECS-Compatiblity mode requires a `target` when `source`
is not an `ip` sub-field, eg. [client][ip]`
  • Loading branch information
kares committed Jul 1, 2021
1 parent 1624d42 commit e21f1b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/qa/integration/monitoring/geoip_metric_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
let(:config) { input + filter + output }

context "monitoring API with geoip plugin" do
let(:filter) { "filter { json { source => \\\"message\\\" } geoip { source => \\\"host\\\" } } " }
let(:filter) do
"filter { json { source => \\\"message\\\" } geoip { source => \\\"host\\\" target => \\\"geoip\\\" } } "
end

it "should have geoip" do
start_logstash
Expand Down

0 comments on commit e21f1b1

Please sign in to comment.