kibana の変更点   

  • 追加された行はこの色です。
  • 削除された行はこの色です。
  • kibana へ行く。

#author("2020-05-01T05:20:21+00:00","default:pentacle","pentacle")
* ElasticSearch [#o33daa91]
repo.d 準備

''/etc/yum.repos.d/elasticsearch.repo''
 [elasticsearch-7.x]
 name=Elasticsearch repository for 7.x packages
 baseurl=https://artifacts.elastic.co/packages/7.x/yum
 gpgcheck=1
 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
 enabled=1
 autorefresh=1
 type=rpm-md

 yum install elasticsearch 
 yum install kibana

使用ポート
|elasticsearch|9200|
|kibana|5601|

*** plugin [#oc2fb29e]
kopf
 /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-kuromoji


* 注意 [#n9bcf77c]
- reverse proxy や port forward していると adblocker と相性が悪いことがある
→ localhost だけ adblocker からはずす、Firefox などでチェックする
- java のバージョンが合わないことがある (elastic 7 から )
→ openjdk を消してから入れなおす

* reverse proxy 設定 [#jaad17f3]

''httpd.conf''
#pre{{
<VirtualHost *:80>
   ProxyPass        /kibana/ http://localhost:5601/
   ProxyPassReverse /kibana/ http://localhost:5601/
</VirtualHost>
}}

''/etc/kibana/kibana.yml''
 server.host: "0.0.0.0"
 server.basePath: "/kibana"

* secure setting [#uf67d4b1]
外部に公開するkibanaは絶対にやること

''/etc/elasticsearch/elasticsearch.yml''
 xpack.security.enabled: true


''/etc/kibana/kibana.yml''
 elasticsearch.username: "kibana"
 elasticsearch.password: 【password】
 xpack.security.encryptionKey: 【32文字の何かてきとうな文字】

 cd /usr/share/elasticsearch
 bin/elasticsearch-setup-passwords interactive

* csv [#m5661fa5]
 sudo yum -y install logstash

logstshでつっこんだあと
indexpatternを作る

 curl --user user:pass localhost:9200/_cat/indices?v




indexpattern を作る
visualizer 

y-axis で
 max ( 一日のうち最大値でも同じため)

x-axis で
 date histogram

[> のボタンで再生される

dashboard に入れる