Insert mapping and data into this index, dashboard only mode

Hello,

I would like to ask how to import mapping and json data to the index when having the basic authentication. I need it to be authorized. In addition to that, is there a way to achieve something like ‘dashboard only mode’? When the anonymous user has only access to dashboards (the user is not filling login info, just makes an anonymous request).
Thanks a lot!

Daniel

Hi Daniel,

There are a number of different ways to connect and send requests to Elasticsearch with basic auth. Are you trying to do it from the command line? Here’s a curl command that works:

curl -XGET https://localhost:9200/_search -u admin:admin --insecure

(admin:admin is the username/password. Make sure to replace with your user/pass) I use the --insecure flag because I am using the demo certificates.

You can use Kibana’s Dev Tools tab to POST your mapping as well. To load data, you can POST to your endpoint with a similar command (single document or bulk).

Hope that helps. Let me know if you have more questions.

J-