Last-modified: 2018-07-17 (火) 16:23:53 (2108d)

導入メモ (ver 6, Windows 7)

導入メモ (ver 6, CentOS 6)

  • # 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"をチェックすると表示される。

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS