Skip to content

Update Elasticsearch client for 6.0 #4661

@andrewkroh

Description

@andrewkroh

In Elasticsearch 6.0, the query response objects no longer contain the boolean created and found fields. See elastic/elasticsearch#25516

command [go test -race -tags integration -cover -coverprofile /tmp/gotestcover-175921078 github.com/elastic/beats/libbeat/outputs/elasticsearch]: exit status 1
--- FAIL: TestIndex (0.31s)
	api_integration_test.go:40: Index() fails: {"ok":false,"_index":"beats-test-index-11638","_type":"test","_id":"1","_source":null,"_version":1,"found":false,"exists":false,"created":false,"acknowledged":false,"matches":null}
--- FAIL: TestIngest (0.34s)
	api_integration_test.go:107: Ingest() fails: {"ok":false,"_index":"beats-test-ingest-11638","_type":"test","_id":"1","_source":null,"_version":1,"found":false,"exists":false,"created":false,"acknowledged":false,"matches":null}
FAIL
coverage: 62.7% of statements

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions