When I try to create an “Index Patterns”, always fail as below:
elastic search log :
[2018-11-27T15:46:42,474][INFO ][o.e.c.m.MetaDataMappingService] [voROLHr] [searchguard/-1GwoUFQTeaYFWoxGFWKCQ] update_mapping [sg]
[2018-11-27T15:46:42,631][INFO ][c.f.s.c.IndexBaseConfigurationRepository] Search Guard License Info: No license needed because enterprise modules are not enabled
[2018-11-27T15:47:06,605][INFO ][o.e.c.m.MetaDataCreateIndexService] [voROLHr] [logstash-2018.11.27] creating index, cause [auto(bulk api)], templates , shards [5]/[1], mappings
[2018-11-27T15:47:06,792][INFO ][o.e.c.m.MetaDataMappingService] [voROLHr] [logstash-2018.11.27/AiH27yT9QE-8QATtHGFZqw] create_mapping [fluentd]
[2018-11-27T15:48:11,049][WARN ][o.e.d.a.a.i.t.p.PutIndexTemplateRequest] Deprecated field [template] used, replaced by [index_patterns]
[2018-11-27T15:48:12,802][WARN ][o.e.d.a.a.i.t.p.PutIndexTemplateRequest] Deprecated field [template] used, replaced by [index_patterns]
[2018-11-27T15:48:12,917][WARN ][o.e.d.a.a.i.t.p.PutIndexTemplateRequest] Deprecated field [template] used, replaced by [index_patterns]
[2018-11-27T15:48:13,190][WARN ][o.e.d.a.a.i.t.p.PutIndexTemplateRequest] Deprecated field [template] used, replaced by [index_patterns]
[2018-11-27T15:48:13,312][WARN ][o.e.d.a.a.i.t.p.PutIndexTemplateRequest] Deprecated field [template] used, replaced by [index_patterns]
[2018-11-27T15:48:13,748][WARN ][o.e.d.a.a.i.t.p.PutIndexTemplateRequest] Deprecated field [template] used, replaced by [index_patterns]
kibana UI show error:
-
Not Found
Error: Not Found at Anonymous function (http://a537d1a7eeeb911e889170eff959d76b-2102519552.us-east-1.elb.amazonaws.com:5601/bundles/commons.bundle.js?v=16627:1:312436) at processQueue (http://a537d1a7eeeb911e889170eff959d76b-2102519552.us-east-1.elb.amazonaws.com:5601/bundles/vendors.bundle.js?v=16627:58:132433) at Anonymous function (http://a537d1a7eeeb911e889170eff959d76b-2102519552.us-east-1.elb.amazonaws.com:5601/bundles/vendors.bundle.js?v=16627:58:133349) at Scope.prototype.$digest (http://a537d1a7eeeb911e889170eff959d76b-2102519552.us-east-1.elb.amazonaws.com:5601/bundles/vendors.bundle.js?v=16627:58:144182) at Scope.prototype.$apply (http://a537d1a7eeeb911e889170eff959d76b-2102519552.us-east-1.elb.amazonaws.com:5601/bundles/vendors.bundle.js?v=16627:58:147007) at done (http://a537d1a7eeeb911e889170eff959d76b-2102519552.us-east-1.elb.amazonaws.com:5601/bundles/vendors.bundle.js?v=16627:58:99799) at completeRequest (http://a537d1a7eeeb911e889170eff959d76b-2102519552.us-east-1.elb.amazonaws.com:5601/bundles/vendors.bundle.js?v=16627:58:104624) at xhr.onload (http://a537d1a7eeeb911e889170eff959d76b-2102519552.us-east-1.elb.amazonaws.com:5601/bundles/vendors.bundle.js?v=16627:58:105361)
elastic search log
Note:
Works well for below command:
kubectl get pods -n
kube-system -l k8s-app=elasticsearch-logging |awk ‘{print $1}’|sed ‘1d’|xargs
-i sh -c ‘kubectl exec -ti {} -n
kube-system – curl http://localhost:9200/_cat/health
-k -u admin:admin’
kubectl get pods -n
kube-system -l k8s-app=elasticsearch-logging |awk ‘{print $1}’|sed ‘1d’|xargs
-i sh -c ‘kubectl exec -ti {} -n
kube-system – curl http://localhost:9200/_cat/indices?v
-k -u admin:admin’
Also works find for kibana log in.
Dockerfile_kibana_image.txt (235 Bytes)
elasticsearch_image.tar (40 KB)
es-statefulset.yaml (2.27 KB)