miku / esbulk

Bulk indexing command line tool for elasticsearch.
GNU General Public License v3.0
278 stars 41 forks source link

Authentication problem #6

Closed andresKM closed 7 years ago

andresKM commented 7 years ago

I secured my elastic (v5.0.1) with X-PACK and now it's not clear how to do the import... Any thoughts?

miku commented 7 years ago

Thanks for the report. It seems X-Pack works with HTTP basic auth, so it should be no problem to add a flag for -user, similar to curl.

miku commented 7 years ago

@andresKM, I just published 0.4.2, which has support for X-Pack. Just pass your username and password to the -u flag:

$ esbulk -u elastic:changeme -index abc file.ldj
miku commented 7 years ago

In case you encounter any more problems with the X-Pack support, please let me know. Thanks!