#author("2018-07-17T16:22:30+09:00","default:jomura","jomura")
#author("2018-07-17T16:23:53+09:00","default:jomura","jomura")
* 導入メモ (ver 6, Windows 7) [#m71c893e]
- https://www.elastic.co/jp/downloads/elasticsearch から elasticsearch-6.3.1.zip をダウンロード
- 適当なフォルダに展開
- cmdで PATH=C:\ProgramData\Oracle\Java\javapath ※otherwise: \Common の使い方が誤っています。
- bin\elasticsearch.bat を実行
- http://localhost:9200/ => JSONが表示
- https://www.elastic.co/downloads/kibana から kibana-6.3.1-windows-x86_64.zip をダウンロード
- 適当なフォルダに展開
- bin\kibana.bat を実行
- http://localhost:5601/ => 操作画面が表示
- https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-kuromoji.html から analysis-kuromoji-6.3.1.zip をダウンロード
- bin\elasticsearch-plugin.bat install file:///C:\Programs\analysis-kuromoji-6.3.1.zip を実行
- https://www.elastic.co/downloads/logstash から logstash-6.3.1.zip をダウンロード
- 適当なフォルダに展開
* 導入メモ (ver 6, CentOS 6) [#y97d7f1f]
- # rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
- # vim /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
- sudo yum install elasticsearch
- sudo service elasticsearch start
- sudo chkconfig --add elasticsearch
- vi /etc/elasticsearch/elasticsearch.yml ※必要に応じて
bootstrap.system_call_filter: false
- curl http://localhost:9200
- $ cd /usr/share/elasticsearch/
- $ sudo bin/elasticserch-plugin install analysis-kuromoji
- $ sudo service elasticsearch restart
- $ curl -X GET http://localhost:9200/_nodes/plugins?pretty
- vi /etc/security/limits.d/90-nproc.conf
elasticsearch soft nproc 4096
- # vim /etc/yum.repos.d/kibana.repo
[kibana-6.x]
name=Kibana repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
- sudo yum install kibana
- sudo chkconfig --add kibana
- sudo -i service kibana start
- vi /etc/kibana/kibana.yml ※必要に応じて
serer.basePath: "/kibana"
- Apacheのconf.d/procxy.confに、/kibana<->localhost:5601を追加
- https://jomura.net/kibana/ => 操作画面が表示
- sudo yum install filebeat
- vi /etc/filebeat/filebeat.yml ※必要に応じて
setup.dashboards.enabled: true
- vi /etc/filebeat/modules.d/apache2.conf
- module: apache2
access:
enabled: true
var.paths: ["/var/log/httpd/access.log*"]
error:
enabled: true
var.paths: ["/var/log/httpd/error.log*"]
- sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-user-agent
- sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-geoip
- $ sudo service elasticsearch restart
- $ curl -X GET http://localhost:9200/_nodes/plugins?pretty
- # sudo service filebeat start
- https://jomura.net/kibana/ => 操作画面が表示
-- dashboardなど
-- 世界地図は[Visualize][options]の"WMS map server"をチェックすると表示される。