-> Downloading com.floragunn:search-guard-6:6.3.0-22.3 from maven central
[=================================================] 100%
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.io.FilePermission /proc/sys/net/core/somaxconn read
* java.lang.RuntimePermission accessClassInPackage.com.sun.jndi.ldap
* java.lang.RuntimePermission accessClassInPackage.sun.misc
* java.lang.RuntimePermission accessClassInPackage.sun.nio.ch
* java.lang.RuntimePermission accessClassInPackage.sun.security.x509
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.RuntimePermission accessUserInformation
* java.lang.RuntimePermission getClassLoader
* java.lang.RuntimePermission setContextClassLoader
* java.lang.RuntimePermission shutdownHooks
* java.lang.reflect.ReflectPermission suppressAccessChecks
* java.net.NetPermission getNetworkInformation
* java.net.NetPermission getProxySelector
* java.net.SocketPermission * connect,accept,resolve
* java.security.SecurityPermission getProperty.ssl.KeyManagerFactory.algorithm
* java.security.SecurityPermission insertProvider.BC
* java.security.SecurityPermission putProviderProperty.BC
* java.security.SecurityPermission setProperty.ocsp.enable
* java.util.PropertyPermission com.sun.security.enableCRLDP write
* java.util.PropertyPermission es.set.netty.runtime.available.processors write
* java.util.PropertyPermission java.security.debug write
* java.util.PropertyPermission java.security.krb5.conf write
* java.util.PropertyPermission javax.security.auth.useSubjectCredsOnly write
* java.util.PropertyPermission jdk.tls.rejectClientInitiatedRenegotiation write
* java.util.PropertyPermission sun.nio.ch.bugLevel write
* java.util.PropertyPermission sun.security.krb5.debug write
* java.util.PropertyPermission sun.security.spnego.debug write
* javax.security.auth.AuthPermission doAs
* javax.security.auth.AuthPermission modifyPrivateCredentials
* javax.security.auth.kerberos.ServicePermission * accept
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
-> Installed search-guard-6
Search Guard 6 Demo Installer
** Warning: Do not use on production or public reachable systems **
Install demo certificates? [y/N] y
Initialize Search Guard? [y/N] y
Cluster mode requires maybe additional setup of:
- Virtual memory (vm.max_map_count)
See https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
Enable cluster mode? [y/N] y
Basedir: /usr/share/elasticsearch
This script maybe require your root password for 'sudo' privileges
Elasticsearch install type: rpm/deb on NAME="Red Hat Enterprise Linux Server"
Elasticsearch config dir: /etc/elasticsearch
Elasticsearch config file: /etc/elasticsearch/elasticsearch.yml
Elasticsearch bin dir: /usr/share/elasticsearch/bin
Elasticsearch plugins dir: /usr/share/elasticsearch/plugins
Elasticsearch lib dir: /usr/share/elasticsearch/lib
Detected Elasticsearch Version: x-content-6.3.0
Detected Search Guard Version: 6.3.0-22.3
grep: ES_CONF_FILE: Aucun fichier ou dossier de ce type
### Success
### Execute this script now on all your nodes and then start all nodes
### Search Guard will be automatically initialized.
### If you like to change the runtime configuration
### change the files in ../sgconfig and execute:
sudo "/usr/share/elasticsearch/plugins/search-guard-6/tools/sgadmin.sh" -cd "/usr/share/elasticsearch/plugins/search-guard-6/sgconfig" -icl -key "/etc/elasticsearch/kirk-key.pem" -cert "/etc/elasticsearch/kirk.pem" -cacert "/etc/elasticsearch/root-ca.pem" -nhnv
### or run ./sgadmin_demo.sh
### To use the Search Guard Configuration GUI see http://docs.search-guard.com/v6/configuration-gui
### To access your Search Guard secured cluster open https://<hostname>:<HTTP port> and log in with admin/admin.
### (Ignore the SSL certificate warning because we installed self-signed demo certificates)
Go to :
https://lrtstfpe1:9200/
After enter admin admin and auto sign the certificate :
#!/bin/bash
#step 0
echo "################## STOP ELASTICSEARCH ##################"
echo "################## STOP ELASTICSEARCH ##################" >> /var/log/kibana/kibana.stdout
service elasticsearch stop
echo "################## STOP KIBANA ##################"
echo "################## STOP KIBANA ##################" >> /var/log/kibana/kibana.stdout
service kibana stop
#step 1
echo "################## Install the Search Guard Plugin to Elasticsearch ##################"
echo "Install the Search Guard Plugin to Elasticsearch" >> /var/log/kibana/kibana.stdout
cd /usr/share/elasticsearch/
bin/elasticsearch-plugin install -b com.floragunn:search-guard-6:6.3.0-22.3
echo "################## END OF Install the Search Guard Plugin to Elasticsearch ##################"
echo "END OF Install the Search Guard Plugin to Elasticsearch" >> /var/log/kibana/kibana.stdout
#step 2
echo "################## Execute the demo installation script ##################"
echo "Execute the demo installation script" >> /var/log/kibana/kibana.stdout
cd /usr/share/elasticsearch/plugins/search-guard-6/tools/
chmod +x install_demo_configuration.sh
./install_demo_configuration.sh
echo "################## END OF Execute the demo installation script ################## "
echo "END OF Execute the demo installation script" >> /var/log/kibana/kibana.stdout
echo "################## Applying configuration changes ##################"
echo "Applying configuration changes" >> /var/log/kibana/kibana.stdout
cd /usr/share/elasticsearch/plugins/search-guard-6/tools/
./sgadmin_demo.sh
echo "################## END OF Applying configuration changes ##################"
echo "END OF Applying configuration changes" >> /var/log/kibana/kibana.stdout
#step 3
echo "################## Install Search Guard on Kibana ##################"
echo "Install Search Guard on Kibana" >> /var/log/kibana/kibana.stdout
cd /usr/share/kibana/
bin/kibana-plugin install https://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-kibana-plugin/6.3.0-13/search-guard-kibana-plugin-6.3.0-13.zip
echo "##################END OF Install Search Guard on Kibana ##################"
echo "END OF Install Search Guard on Kibana" >> /var/log/kibana/kibana.stdout
#step 4
echo "################## Add the Search Guard Kibana configuration ##################"
echo "Add the Search Guard Kibana configuration" >> /var/log/kibana/kibana.stdout
echo "elasticsearch.url: \"https://localhost:9200\"" >> /etc/kibana/kibana.yml
echo "elasticsearch.username: \"kibanaserver\"" >> /etc/kibana/kibana.yml
echo "elasticsearch.password: \"kibanaserver\"" >> /etc/kibana/kibana.yml
echo "elasticsearch.ssl.verificationMode: none" >> /etc/kibana/kibana.yml
echo "elasticsearch.requestHeadersWhitelist: [ \"Authorization\", \"sgtenant\" ]" >> /etc/kibana/kibana.yml
echo "################## END OF Add the Search Guard Kibana configuration ##################"
echo "END OF Add the Search Guard Kibana configuration" >> /var/log/kibana/kibana.stdout
sed -e '/^[ ]*#/d' -e '/^$/d' /etc/kibana/kibana.yml
#step 5
echo "################## START ELASTICSEARCH ##################"
service elasticsearch start
sleep 15
echo "################## START KIBANA ##################"
service kibana start
{"type":"log","@timestamp":"2018-07-09T07:48:33Z","tags":["status","plugin:kib...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:elasti...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:xpack...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:searchp...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:m...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:til...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:wat...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:license_m...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:index_ma...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:time...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:gr...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:monit...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:secu...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["security","warning"],"pid":9540,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["security","warning"],"pid":9540,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:grokde...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:dashboa...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:logs...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:a...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:con...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:console_e...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:met...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:35Z","tags":["reporting","warning"],"pid":9540,"message":"Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2018-07-09T07:48:35Z","tags":["status","plugin:repo...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:35Z","tags":["status","plugin:elasti...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["license","info","xpack"],"pid":9540,"message":"Imported license information from Elasticsearch for the [data] cluster: mode: basic | status: active"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:xpack...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:searchp...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:m...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:til...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:wat...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:index_ma...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:gr...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:secu...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:grokde...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:logs...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:repo...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["info","monitoring-ui","kibana-monitoring"],"pid":9540,"message":"Starting all Kibana monitoring collectors"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["license","info","xpack"],"pid":9540,"message":"Imported license information from Elasticsearch for the [monitoring] cluster: mode: basic | status: active"}
{"type":"log","@timestamp":"2018-07-09T07:48:50Z","tags":["listening","info"],"pid":9540,"message":"Server running at http://lrtstfpe1:5601"}
################## STOP ELASTICSEARCH ##################
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["error","elasticsearch","admin"],"pid":9540,"message":"Request error, retrying\nPOST http://localhost:9200/.kibana/_search?ignore_unavailable=true&filter_path=aggregations.types.buckets => connect ECONNREFUSED 127.0.0.1:9200"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["error","elasticsearch","admin"],"pid":9540,"message":"Request error, retrying\nGET http://localhost:9200/.kibana/doc/config%3A6.3.0 => connect ECONNREFUSED 127.0.0.1:9200"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["error","elasticsearch","admin"],"pid":9540,"message":"Request error, retrying\nPOST http://localhost:9200/.reporting-*/_search?filter_path=hits.total%2Caggregations.jobTypes.buckets%2Caggregations.objectTypes.buckets%2Caggregations.layoutTypes.buckets%2Caggregations.statusTypes.buckets => connect ECONNREFUSED 127.0.0.1:9200"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","admin"],"pid":9540,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","admin"],"pid":9540,"message":"No living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","admin"],"pid":9540,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","admin"],"pid":9540,"message":"No living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","admin"],"pid":9540,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","admin"],"pid":9540,"message":"No living connections"}
{"type":"error","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","monitoring-ui","kibana-monitoring"],"pid":9540,"level":"error","error":{"message":"No Living connections","name":"Error","stack":"Error: No Living connections\n at sendReqWithConnection (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:225:15)\n at next (/usr/share/kibana/node_modules/elasticsearch/src/lib/connection_pool.js:213:7)\n at _combinedTickCallback (internal/process/next_tick.js:131:7)\n at process._tickCallback (internal/process/next_tick.js:180:9)"},"message":"No Living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","monitoring-ui","kibana-monitoring"],"pid":9540,"message":"Unable to fetch data from kibana collector"}
{"type":"error","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","monitoring-ui","kibana-monitoring"],"pid":9540,"level":"error","error":{"message":"No Living connections","name":"Error","stack":"Error: No Living connections\n at sendReqWithConnection (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:225:15)\n at next (/usr/share/kibana/node_modules/elasticsearch/src/lib/connection_pool.js:213:7)\n at _combinedTickCallback (internal/process/next_tick.js:131:7)\n at process._tickCallback (internal/process/next_tick.js:180:9)"},"message":"No Living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","monitoring-ui","kibana-monitoring"],"pid":9540,"message":"Unable to fetch data from reporting_stats collector"}
{"type":"error","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","monitoring-ui","kibana-monitoring"],"pid":9540,"level":"error","error":{"message":"No Living connections","name":"Error","stack":"Error: No Living connections\n at sendReqWithConnection (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:225:15)\n at next (/usr/share/kibana/node_modules/elasticsearch/src/lib/connection_pool.js:213:7)\n at _combinedTickCallback (internal/process/next_tick.js:131:7)\n at process._tickCallback (internal/process/next_tick.js:180:9)"},"message":"No Living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","monitoring-ui","kibana-monitoring"],"pid":9540,"message":"Unable to fetch data from kibana_settings collector"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["error","elasticsearch","admin"],"pid":9540,"message":"Request error, retrying\nPOST http://localhost:9200/_xpack/monitoring/_bulk?system_id=kibana&system_api_version=6&interval=10000ms => connect ECONNREFUSED 127.0.0.1:9200"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","admin"],"pid":9540,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","admin"],"pid":9540,"message":"No living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["error","elasticsearch","monitoring-ui"],"pid":9540,"message":"Request error, retrying\nGET http://localhost:9200/_xpack => connect ECONNREFUSED 127.0.0.1:9200"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","monitoring-ui"],"pid":9540,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","monitoring-ui"],"pid":9540,"message":"No living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["license","warning","xpack"],"pid":9540,"message":"License information from the X-Pack plugin could not be obtained from Elasticsearch for the [monitoring] cluster. Error: No Living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","admin"],"pid":9540,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","admin"],"pid":9540,"message":"No living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:xpack...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:searchp...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:m...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:til...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:wat...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:index_ma...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:gr...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:secu...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:grokde...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:logs...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:repo...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["info","monitoring-ui","kibana-monitoring"],"pid":9540,"message":"Stopping all Kibana monitoring collectors"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:elasti...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["error","elasticsearch","data"],"pid":9540,"message":"Request error, retrying\nGET http://localhost:9200/_xpack => connect ECONNREFUSED 127.0.0.1:9200"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","data"],"pid":9540,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","data"],"pid":9540,"message":"No living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["license","warning","xpack"],"pid":9540,"message":"License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Error: No Living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:xpack...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:searchp...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:m...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:til...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:wat...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:index_ma...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:gr...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:secu...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:grokde...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:logs...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:repo...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
################## STOP KIBANA ##################
Install the Search Guard Plugin to Elasticsearch
END OF Install the Search Guard Plugin to Elasticsearch
Execute the demo installation script
END OF Execute the demo installation script
Applying configuration changes
END OF Applying configuration changes
Install Search Guard on Kibana
END OF Install Search Guard on Kibana
Add the Search Guard Kibana configuration
END OF Add the Search Guard Kibana configuration
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:kib...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:elasti...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:xpack...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:searchp...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:m...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:til...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:wat...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:license_m...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:index_ma...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:time...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:gr...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:monit...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:secu...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["security","warning"],"pid":10589,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["security","warning"],"pid":10589,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:grokde...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:dashboa...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:logs...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:a...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:con...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:console_e...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"error","@timestamp":"2018-07-09T07:53:45Z","tags":["fatal"],"pid":10589,"level":"fatal","error":{"message":"Plugin hapi-auth-cookie already registered in: http://lrtstfpe1:5601","name":"Error","stack":"Error: Plugin hapi-auth-cookie already registered in: http://lrtstfpe1:5601\n at Object.exports.assert (/usr/share/kibana/node_modules/hoek/lib/index.js:740:11)\n at each (/usr/share/kibana/node_modules/hapi/lib/plugin.js:287:26)\n at iterate (/usr/share/kibana/node_modules/items/lib/index.js:36:13)\n at Object.exports.serial (/usr/share/kibana/node_modules/items/lib/index.js:39:9)\n at module.exports.internals.Plugin.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:320:11)\n at Plugin.init [as externalInit] (/usr/share/kibana/plugins/searchguard/index.js:145:24)\n at asyncRegister (/usr/share/kibana/src/server/plugins/lib/plugin.js:72:20)\n at Object.register (/usr/share/kibana/src/server/plugins/lib/plugin.js:77:7)\n at Object.target [as register] (/usr/share/kibana/node_modules/hapi/node_modules/joi/lib/object.js:77:34)\n at each (/usr/share/kibana/node_modules/hapi/lib/plugin.js:317:14)\n at iterate (/usr/share/kibana/node_modules/items/lib/index.js:36:13)\n at Object.exports.serial (/usr/share/kibana/node_modules/items/lib/index.js:39:9)\n at module.exports.internals.Server.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:320:11)\n at Promise (/usr/share/kibana/node_modules/hapi/lib/promises.js:24:16)\n at new Promise (<anonymous>)\n at Object.exports.wrap (/usr/share/kibana/node_modules/hapi/lib/promises.js:13:12)\n at module.exports.internals.Server.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:164:25)\n at Plugin.init (/usr/share/kibana/src/server/plugins/lib/plugin.js:82:28)\n at Plugin.init (/usr/share/kibana/node_modules/lodash/index.js:7363:25)\n at callPluginHook (/usr/share/kibana/src/server/plugins/lib/call_plugin_hook.js:37:25)\n at <anonymous>"},"message":"Plugin hapi-auth-cookie already registered in: http://lrtstfpe1:5601"}
FATAL Error: Plugin hapi-auth-cookie already registered in: http://lrtstfpe1:5601
at Object.exports.assert (/usr/share/kibana/node_modules/hoek/lib/index.js:740:11)
at each (/usr/share/kibana/node_modules/hapi/lib/plugin.js:287:26)
at iterate (/usr/share/kibana/node_modules/items/lib/index.js:36:13)
at Object.exports.serial (/usr/share/kibana/node_modules/items/lib/index.js:39:9)
at module.exports.internals.Plugin.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:320:11)
at Plugin.init [as externalInit] (/usr/share/kibana/plugins/searchguard/index.js:145:24)
at asyncRegister (/usr/share/kibana/src/server/plugins/lib/plugin.js:72:20)
at Object.register (/usr/share/kibana/src/server/plugins/lib/plugin.js:77:7)
at Object.target [as register] (/usr/share/kibana/node_modules/hapi/node_modules/joi/lib/object.js:77:34)
at each (/usr/share/kibana/node_modules/hapi/lib/plugin.js:317:14)
at iterate (/usr/share/kibana/node_modules/items/lib/index.js:36:13)
at Object.exports.serial (/usr/share/kibana/node_modules/items/lib/index.js:39:9)
at module.exports.internals.Server.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:320:11)
at Promise (/usr/share/kibana/node_modules/hapi/lib/promises.js:24:16)
at new Promise (<anonymous>)
at Object.exports.wrap (/usr/share/kibana/node_modules/hapi/lib/promises.js:13:12)
at module.exports.internals.Server.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:164:25)
at Plugin.init (/usr/share/kibana/src/server/plugins/lib/plugin.js:82:28)
at Plugin.init (/usr/share/kibana/node_modules/lodash/index.js:7363:25)
at callPluginHook (/usr/share/kibana/src/server/plugins/lib/call_plugin_hook.js:37:25)
at <anonymous>
Attempting to transfer from <a href="https://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-kibana-plugin/6.3.0-14-beta-1/search-guard-kibana-plugin-6.3.0-14-beta-1.zip" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fsearch.maven.org%2Fremotecontent%3Ffilepath%3Dcom%2Ffloragunn%2Fsearch-guard-kibana-plugin%2F6.3.0-14-beta-1%2Fsearch-guard-kibana-plugin-6.3.0-14-beta-1.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHvQ4JcWctjUFWXUB73qqiYtolL0Q';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fsearch.maven.org%2Fremotecontent%3Ffilepath%3Dcom%2Ffloragunn%2Fsearch-guard-kibana-plugin%2F6.3.0-14-beta-1%2Fsearch-guard-kibana-plugin-6.3.0-14-beta-1.zip\
xpack.security.enabled: false
And now it works as expected.
But the log page is not in https, is it normal ? How to do to have an https login kibana page ?
Thx for answer
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:xpack_main@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:searchp...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:m...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:til...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:wat...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:license_manag...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:index_manag...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:timelion@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:gr...@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:monitoring@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:security@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["security","warning"],"pid":9540,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["security","warning"],"pid":9540,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:grokdebugger@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:dashboard_mo...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:logstash@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:a...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:con...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:console_exten...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:34Z","tags":["status","plugin:met...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:35Z","tags":["reporting","warning"],"pid":9540,"message":"Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2018-07-09T07:48:35Z","tags":["status","plugin:reporting@6.3.0","info"],"pid":9540,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:48:35Z","tags":["status","plugin:elasti...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["license","info","xpack"],"pid":9540,"message":"Imported license information from Elasticsearch for the [data] cluster: mode: basic | status: active"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:xpack_main@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:searchp...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:m...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:til...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:wat...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:index_manag...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:gr...@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:security@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:grokdebugger@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:logstash@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:48:36Z","tags":["status","plugin:reporting@6.3.0","info"],"pid":9540,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:xpack_main@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:searchp...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:m...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:til...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:wat...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:index_manag...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:gr...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:security@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:grokdebugger@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:logstash@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:reporting@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["info","monitoring-ui","kibana-monitoring"],"pid":9540,"message":"Stopping all Kibana monitoring collectors"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:elasti...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from green to red - Unable to connect to Elasticsearch at http://localhost:9200.","prevState":"green","prevMsg":"Ready"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["error","elasticsearch","data"],"pid":9540,"message":"Request error, retrying\nGET http://localhost:9200/_xpack => connect ECONNREFUSED 127.0.0.1:9200"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","data"],"pid":9540,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["warning","elasticsearch","data"],"pid":9540,"message":"No living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["license","warning","xpack"],"pid":9540,"message":"License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Error: No Living connections"}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:xpack_main@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:searchp...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:m...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:til...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:wat...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:index_manag...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:gr...@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:security@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:grokdebugger@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:logstash@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
{"type":"log","@timestamp":"2018-07-09T07:49:06Z","tags":["status","plugin:reporting@6.3.0","error"],"pid":9540,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch at http://localhost:9200."}
################## STOP KIBANA ##################
Install the Search Guard Plugin to Elasticsearch
END OF Install the Search Guard Plugin to Elasticsearch
Execute the demo installation script
END OF Execute the demo installation script
Applying configuration changes
END OF Applying configuration changes
Install Search Guard on Kibana
END OF Install Search Guard on Kibana
Add the Search Guard Kibana configuration
END OF Add the Search Guard Kibana configuration
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:kib...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:elasti...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:xpack_main@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:searchp...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:m...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:til...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:wat...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:license_manag...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:index_manag...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:timelion@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:gr...@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:monitoring@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:security@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["security","warning"],"pid":10589,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["security","warning"],"pid":10589,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:grokdebugger@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:dashboard_mo...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:logstash@6.3.0","info"],"pid":10589,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:a...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:con...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2018-07-09T07:53:44Z","tags":["status","plugin:console_exten...@6.3.0","info"],"pid":10589,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"error","@timestamp":"2018-07-09T07:53:45Z","tags":["fatal"],"pid":10589,"level":"fatal","error":{"message":"Plugin hapi-auth-cookie already registered in: http://lrtstfpe1:5601","name":"Error","stack":"Error: Plugin hapi-auth-cookie already registered in: http://lrtstfpe1:5601\n at Object.exports.assert (/usr/share/kibana/node_modules/hoek/lib/index.js:740:11)\n at each (/usr/share/kibana/node_modules/hapi/lib/plugin.js:287:26)\n at iterate (/usr/share/kibana/node_modules/items/lib/index.js:36:13)\n at Object.exports.serial (/usr/share/kibana/node_modules/items/lib/index.js:39:9)\n at module.exports.internals.Plugin.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:320:11)\n at Plugin.init [as externalInit] (/usr/share/kibana/plugins/searchguard/index.js:145:24)\n at asyncRegister (/usr/share/kibana/src/server/plugins/lib/plugin.js:72:20)\n at Object.register (/usr/share/kibana/src/server/plugins/lib/plugin.js:77:7)\n at Object.target [as register] (/usr/share/kibana/node_modules/hapi/node_modules/joi/lib/object.js:77:34)\n at each (/usr/share/kibana/node_modules/hapi/lib/plugin.js:317:14)\n at iterate (/usr/share/kibana/node_modules/items/lib/index.js:36:13)\n at Object.exports.serial (/usr/share/kibana/node_modules/items/lib/index.js:39:9)\n at module.exports.internals.Server.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:320:11)\n at Promise (/usr/share/kibana/node_modules/hapi/lib/promises.js:24:16)\n at new Promise (<anonymous>)\n at Object.exports.wrap (/usr/share/kibana/node_modules/hapi/lib/promises.js:13:12)\n at module.exports.internals.Server.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:164:25)\n at Plugin.init (/usr/share/kibana/src/server/plugins/lib/plugin.js:82:28)\n at Plugin.init (/usr/share/kibana/node_modules/lodash/index.js:7363:25)\n at callPluginHook (/usr/share/kibana/src/server/plugins/lib/call_plugin_hook.js:37:25)\n at <anonymous>"},"message":"Plugin hapi-auth-cookie already registered in: http://lrtstfpe1:5601"}
The error more accurate in /var/log/kibana.sterr :
FATAL Error: Plugin hapi-auth-cookie already registered in: http://lrtstfpe1:5601
at Object.exports.assert (/usr/share/kibana/node_modules/hoek/lib/index.js:740:11)
at each (/usr/share/kibana/node_modules/hapi/lib/plugin.js:287:26)
at iterate (/usr/share/kibana/node_modules/items/lib/index.js:36:13)
at Object.exports.serial (/usr/share/kibana/node_modules/items/lib/index.js:39:9)
at module.exports.internals.Plugin.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:320:11)
at Plugin.init [as externalInit] (/usr/share/kibana/plugins/searchguard/index.js:145:24)
at asyncRegister (/usr/share/kibana/src/server/plugins/lib/plugin.js:72:20)
at Object.register (/usr/share/kibana/src/server/plugins/lib/plugin.js:77:7)
at Object.target [as register] (/usr/share/kibana/node_modules/hapi/node_modules/joi/lib/object.js:77:34)
at each (/usr/share/kibana/node_modules/hapi/lib/plugin.js:317:14)
at iterate (/usr/share/kibana/node_modules/items/lib/index.js:36:13)
at Object.exports.serial (/usr/share/kibana/node_modules/items/lib/index.js:39:9)
at module.exports.internals.Server.internals.Plugin.register (/usr/share/kibana/node_modules/hapi/lib/plugin.js:320:11)
at Promise (/usr/
...