Elasticsearch6.7 Kibana6.7 Windows安装过程

一、前提条件

  Java1.8.131以上SDK确认安装,不能是预览版(预览版时只能localhost访问,不能使用IP访问)

  JAVA_HOME环境变量设置OK

二、Elasticsearch6.7安装

  1、解压安装文件

  2、config目录,修改elasticsearch.yml文件,设置cluster.name、node.name、network.host为自己的值,其中network.host设置为0.0.0.0,表示使用本机IP访问

  3、bin目录,执行elasticsearch.bat文件启动

  4、打开浏览器,访问http://localhost:9200 或者http://IP:9200,提示json文件下载即启动完成,关闭bat文件的cmd窗口

  5、bin目录,执行elasticsearch-service.bat install 服务名,创建elasticsearch的服务,启动服务

三、Kibana6.7安装

  1、解压安装文件

  2、config目录,修改Kibana.yml文件,设置server.host为自己的值

  3、bin目录,执行Kibana.bat启动

  4、浏览器访问http://IP:5601,显示Kibana页面即启动成功

四、Filebeat 6.7安装

  1、在应用服务上解压文件目录,并修改文件夹名为Filebeat

  2、执行install-service-filebeat.ps1,如果提示没有权限,则在cmd中执行以下语句:

    PowerShell.exe -ExecutionPolicy UnRestricted -File .install-Service-filebeat.ps1

  3、打开filebeat.yml配置文件

    filebeat.inputs:下的enabled: true;    paths:值,增加本机log日志目录,可以多行;

    Multiline options,

      不以时间格式开头的行都合并到上一行的末尾

      pattern: '^[0-2][0-9]:[0-5][0-9]:[0-5][0-9]'     

      将非日期开头的的行 合并到第一行中

      pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}

      negate: true      

      match: after

    output.elasticsearch:

      hosts:["IP:9200"]

五、metricbeat 6.7安装

  1、在应用服务上解压文件目录,并修改文件夹名为Metricbeat

  2、执行install-service-metricbeat.ps1,如果提示没有权限,则在cmd中执行以下语句:

    PowerShell.exe -ExecutionPolicy UnRestricted -File .install-Service-metricbeat.ps1

  3、打开metricbeat.yml配置文件

    output.elasticsearch:

      hosts:["IP:9200"]

原文地址:https://www.cnblogs.com/xiaojwang/p/10715641.html