elastic / stream2es

Stream data into ES (Wikipedia, Twitter, stdin, or other ESes)
355 stars 60 forks source link

Support Elasticsearch Auth #23

Open Foolius opened 10 years ago

Foolius commented 10 years ago

I need stream2es to support the ES Auth plugin ( https://github.com/codelibs/elasticsearch-auth ) and want to program this myself, but I'm not sure how I should do it. I think one possibility would be to add username and password parameters.

Another more generic solution is to add only one parameter and with this parameter one can expand the json payload.

For example, when you add the option --additional "token":"uineqlxvonrtueaiobud" the json which gets send looks like this: {[old json], "token":"uineqlxvonrtueaiobud"}

Which one of these solutions do you prefer?