Skip to content

Instantly share code, notes, and snippets.

Elasticsearch roles to use for zipkin user if Elasticsearch has the auth enabled

Create a role named as zipkin (use correct auth in -u curl option)

curl -k -X POST -H 'Content-Type: application/json' -u $ELASTIC_USERNAME:$ELASTIC_PASSWORD https://elasticsearch-host:9200/_security/role/zipkin -d'
{
  "indices": [
    {
 "names": [ "zipkin*" ],