tsaikd/gogstash

elastic lib version

Closed this issue · 3 comments

can not build with "gopkg.in/olivere/elastic.v5" ,but with "gopkg.in/olivere/elastic.v6"

error:
../../../github.com/tsaikd/gogstash/output/elastic/outputelastic.go:106:40: conf.client.BulkProcessor().Name("gogstash-output-elastic").BulkActions(conf.BulkActions).BulkSize(conf.BulkSize).FlushInterval(conf.BulkFlushInterval).Backoff undefined (type *elastic.BulkProcessorService has no field or method Backoff)

it can work with:
gopkg.in/olivere/elastic.v6

run go get -u -v gopkg.in/olivere/elastic.v5 before go build