Skip to content

Instantly share code, notes, and snippets.

@GitSumito
Created July 14, 2017 03:27
Show Gist options
  • Save GitSumito/dfddde174cb3b573a022938b9b17f99c to your computer and use it in GitHub Desktop.
Save GitSumito/dfddde174cb3b573a022938b9b17f99c to your computer and use it in GitHub Desktop.
kibana(ELK)でユーザーやグループ毎に見せる/見せないをコントロールする。 ref: http://qiita.com/S-T/items/5fa1d8d9cd83a7de8dfe
/usr/share/elasticsearch/bin/elasticsearch-plugin install -b com.floragunn:search-guard-5:5.4.2-12
cd /usr/share/elasticsearch/plugins/search-guard-5/tools
sh install_demo_configuration.sh
sh sgadmin_demo.sh
cd /tmp/
wget https://github.com/floragunncom/search-guard-kibana-plugin/releases/download/v5.4.2-3/searchguard-kibana-5.4.2-3.zip
/usr/share/kibana/bin/kibana-plugin install file:///tmp/searchguard-kibana-5.4.2-3.zip
elasticsearch.username: "kibanaserver"
elasticsearch.password: "kibanaserver"
elasticsearch.url: "https://localhost:9200"
elasticsearch.ssl.verificationMode: none
cp -p /etc/elasticsearch/truststore.jks /etc/logstash/truststore.jks
sg_readonly_nginx:
cluster:
- CLUSTER_COMPOSITE_OPS_RO
indices:
'messages-*':
'*':
- READ
'?kibana':
'*':
- INDICES_ALL
$ /usr/share/elasticsearch/plugins/search-guard-5/tools/hash.sh
[Password:]
$2a$12$MiyI73Dpa3qbajPW05ZYVOsSF93TdOBAfPciCTgwnbXS/fw2ok1YO
$
tsukada:
hash: $2a$12$MiyI73Dpa3qbajPW05ZYVOsSF93TdOBAfPciCTgwnbXS/fw2ok1YO
sg_readonly_nginx:
users:
- tsukada
sg_readonly_nginx:
cluster:
- CLUSTER_COMPOSITE_OPS_RO
indices:
'nginx-*':
'*':
- READ
'?kibana':
'*':
- INDICES_ALL
/usr/share/elasticsearch/plugins/search-guard-5/tools/sgadmin_demo.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment