summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-elasticsearch
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2017-12-18 15:06:12 +0200
committerYuli Shlosberg <ys9693@att.com>2017-12-25 15:46:32 +0000
commit7b9ef5920d732106337338e65dd92feda1d05731 (patch)
treeb0a958d67af0b3d8ed93778c0e79474281e02b08 /sdc-os-chef/sdc-elasticsearch
parent05c625fb9c3673d6c60511958f7e051257247c2b (diff)
Kibana and import normative API fix
Change-Id: Ic365ed2122dc16f35b54a064166f4774650c9029 Issue-ID: SDC-265 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'sdc-os-chef/sdc-elasticsearch')
-rw-r--r--sdc-os-chef/sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_3_create_audit_template.rb7
1 files changed, 7 insertions, 0 deletions
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