How are you making the request from the browser to elasticsearch? Is the browser making the request directly to ES, or is it going through the Kibana server to proxy the request to ES?
it goes through Kibana server : client goes to endpoint, endpoint makes PUT or POST or DELETE request and then makes records, but in my case it does not record with the error " missing authentication token for REST request [/_bulk] "
You should use Kibana's built-in Elasticsearch client to perform requests to ES. See Communicating with Elasticsearch for more details. If you're looking to make requests on behalf of the end user, then you'll want to use the callWithRequest described in that link.
i already use callWithRequest in my endpoint. so this error is with callWithRequest method.
I made my endpoint with settings described in that link. so i usecallWithRequest and get the error in this topic
Thanks @masterThomas. I see it doesn't have the public directory/code, so I won't be able to run this, but the code itself looks correct on the surface.
How do you have Kibana and Elasticsearch configured? Can you post your kibana.yml and elasticsearch.yml configuration, redacting any sensitive information such as passwords?
Thanks for the update, your configuration looks fine on the surface as well. Are you in a position to share the complete plugin code on github? The public folder is missing at the very least, so I'm not able to download and run this to help diagnose problems.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.