From 7b9ef5920d732106337338e65dd92feda1d05731 Mon Sep 17 00:00:00 2001 From: Yuli Shlosberg Date: Mon, 18 Dec 2017 15:06:12 +0200 Subject: Kibana and import normative API fix Change-Id: Ic365ed2122dc16f35b54a064166f4774650c9029 Issue-ID: SDC-265 Signed-off-by: Yuli Shlosberg --- .../sdc-elasticsearch/recipes/ES_3_create_audit_template.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sdc-os-chef/sdc-elasticsearch') diff --git a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_3_create_audit_template.rb b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_3_create_audit_template.rb index 2d882631f2..4e8136c626 100644 --- a/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_3_create_audit_template.rb +++ b/sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_3_create_audit_template.rb @@ -236,3 +236,10 @@ bash "create audit mapping" do "aliases": { "last_3_months": {}}}' http://localhost:9200/_template/audit_template EOH end + +bash "set default index for Kibana" do + code <<-EOH + curl -XPUT http://localhost:9200/.kibana/index-pattern/auditingevents-* -d '{"title" : "events-*", "timeFieldName": "TIMESTAMP"}' + curl -XPUT http://localhost:9200/.kibana/config/4.3.3 -d '{"defaultIndex" : "auditingevents-*"}' + EOH +end -- cgit 1.2.3-korg