So heres my indices:
curl --user elastic:secret -XGET 'localhost:9200/_cat/indices'
yellow open .kibana 0gfdsSymSVWU-5wnzqosXw 1 1 1 0 3.1kb 3.1kb
yellow open rally-2017 z_YMhaElSMu0wlWJoE2vQg 5 1 323411 0 34.3mb 34.3mb
.Kibana works.
rally-2017 does not work, I get: "Unable to fetch mapping. Do you have indices matching the pattern"
Logs show:
{"type":"response","@timestamp":"2017-05-01T12:15:10Z","tags":[],"pid":1481,"method":"get","statusCode":403,"req":{"url":"/elasticsearch/rally-2017/mapping/field/*?=1493640910751&ignore_unavailable=false&allow_no_indices=false&include_defaults=true","method":"get","headers":{"host":"x.x.x.x:5601","connection":"keep-alive","accept":"application/json, text/plain, /","kbn-version":"5.3.2","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36","dnt":"1","referer":"http://52.43.9.171:5601/app/kibana","accept-encoding":"gzip, deflate, sdch","accept-language":"en-GB,en-US;q=0.8,en;q=0.6"},"remoteAddress":"x.x.x.x","userAgent":"x.x.x.x","referer":"http://x.x.x.x:5601/app/kibana"},"res":{"statusCode":403,"responseTime":6,"contentLength":9},"message":"GET /elasticsearch/rally-2017/mapping/field/*?=1493640910751&ignore_unavailable=false&allow_no_indices=false&include_defaults=true 403 6ms - 9.0B"}
But when I query ES for it:
curl --user elastic:secret -XGET 'localhost:9200/rally-2017'
{"rally-2017":{"aliases":{},"mappings":{"races":{"_all":{"enabled":false},"dynamic_templates":[{"strings":{"match":"","match_mapping_type":"string","mapping":{"doc_values":true,"index":"not_analyzed","type":"string"}}}],"properties":{"@timestamp":{"type":"date","format":"epoch_millis"},"car":{"type":"keyword"},"challenge":{"type":"keyword"},"distribution-version":{"type":"keyword"},"environment":{"type":"keyword"},"lap":{"type":"integer"},"laps":{"type":"long"},"name":{"type":"keyword"},"operation":{"type":"keyword"},"operation-type":{"type":"keyword"},"pipeline":{"type":"keyword"},"relative-time":{"type":"long"},"revision":{"type":"keyword"},"sample-type":{"type":"keyword"},"selected-challenge":{"type":"nested","properties":{"name":{"type":"keyword"},"operations":{"type":"keyword"}}},"target-hosts":{"type":"keyword"},"track":{"type":"keyword"},"trial-timestamp":{"type":"date","fields":{"raw":{"type":"keyword"}},"format":"basic_date_time_no_millis"},"unit":{"type":"keyword"},"user-tag":{"type":"keyword"},"value":{"type":"float"}}},"metrics":{"_all":{"enabled":false},"dynamic_templates":[{"strings":{"match":"","match_mapping_type":"string","mapping":{"doc_values":true,"index":"not_analyzed","type":"string"}}}],"properties":{"@timestamp":{"type":"date","format":"epoch_millis"},"car":{"type":"keyword"},"challenge":{"type":"keyword"},"environment":{"type":"keyword"},"lap":{"type":"integer"},"meta":{"properties":{"bulk-size":{"type":"long"},"cpu_logical_cores":{"type":"long"},"distribution_version":{"type":"keyword"},"error-count":{"type":"long"},"host_name":{"type":"keyword"},"jvm_vendor":{"type":"keyword"},"jvm_version":{"type":"keyword"},"node_name":{"type":"keyword"},"os_name":{"type":"keyword"},"os_version":{"type":"keyword"},"source_revision":{"type":"keyword"},"success":{"type":"boolean"},"success-count":{"type":"long"}}},"name":{"type":"keyword"},"operation":{"type":"keyword"},"operation-type":{"type":"keyword"},"relative-time":{"type":"long"},"sample-type":{"type":"keyword"},"selected-challenge":{"type":"nested"},"track":{"type":"keyword"},"trial-timestamp":{"type":"date","fields":{"raw":{"type":"keyword"}},"format":"basic_date_time_no_millis"},"unit":{"type":"keyword"},"value":{"type":"float"}}},"default":{"_all":{"enabled":false},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"doc_values":true,"index":"not_analyzed","type":"string"}}}],"properties":{"@timestamp":{"type":"date","format":"epoch_millis"},"car":{"type":"keyword"},"challenge":{"type":"keyword"},"environment":{"type":"keyword"},"lap":{"type":"integer"},"name":{"type":"keyword"},"operation":{"type":"keyword"},"operation-type":{"type":"keyword"},"relative-time":{"type":"long"},"sample-type":{"type":"keyword"},"selected-challenge":{"type":"nested"},"track":{"type":"keyword"},"trial-timestamp":{"type":"date","fields":{"raw":{"type":"keyword"}},"format":"basic_date_time_no_millis"},"unit":{"type":"keyword"},"value":{"type":"float"}}}},"settings":{"index":{"refresh_interval":"5s","number_of_shards":"5","provided_name":"rally-2017","creation_date":"1493458838319","number_of_replicas":"1","uuid":"z_YMhaElSMu0wlWJoE2vQg","version":{"created":"5030299"}}}}}