<small id='28y0'></small> <noframes id='H46Nvny'>

  • <tfoot id='E9Ox1h'></tfoot>

      <legend id='jYnJp'><style id='sCjW0'><dir id='F9L4'><q id='VqacMO4tY'></q></dir></style></legend>
      <i id='Fgu6Tbyx'><tr id='4dqhr26'><dt id='Xjx3CzP1KJ'><q id='ND7vw21'><span id='pCwB'><b id='a8wcM'><form id='lqXiC7aO'><ins id='g9ITD2'></ins><ul id='vNbTt7S3'></ul><sub id='dxnApOFX'></sub></form><legend id='U2tCSuj'></legend><bdo id='zfJPheQWY'><pre id='nCvG9yg0'><center id='vNisyngoU'></center></pre></bdo></b><th id='pjv0'></th></span></q></dt></tr></i><div id='U4mTnL5tR'><tfoot id='L76eYl'></tfoot><dl id='IZKfyr4'><fieldset id='kH6a'></fieldset></dl></div>

          <bdo id='imwU'></bdo><ul id='BSlhAfTv5d'></ul>

          1. <li id='s1dvuYJnoM'></li>
            登陆

            Docker布置Elasticsearch+Kibana+Filebeat(7.2.0版别)

            admin 2019-11-01 337人围观 ,发现0个评论

            1.安装elasticsearch容器

            docker run -d --name=elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.2.0

            2.安装kibana 容器

            docker run -d --name=kibana --link elasticsearch:elasticsearch -p 5601:5601 docker.elastic.co/kibana/kibana:7.2.0

            3.安装filebeat容器

            docker run主板 -d -v /var/tomcat/log/:/var/tomcat/log/ -v /var/vDocker布置Elasticsearch+Kibana+Filebeat(7.2.0版别)ts/log/logs/vts/all/:/var/Docker布置Elasticsearch+Kibana+Filebeat(7.2.0版别)vts/log/logs/vts/all/ -v /var/log/nginx/:/var/log/nginx/ --name=filebeat --user=root docker.elastic.co/beaDocker布置Elasticsearch+Kibana+Filebeat(7.2.0版别)ts/filebeat:7.2.0 filebeat -e -strict.perms=false -E output.elasticsearch.hosts=["192.168.0.124:9200"]

            解释说明:-v 参数是为了将宿主机的日志目录挂载到容器中方便日志采集

            a.进入容器

            docker exec -it filebeat bash

            b.编辑filebeat.yml文件

            vi /usr/share/fDocker布置Elasticsearch+Kibana+Filebeat(7.2.0版别)ilebeat/filebeat.yml

            在文件起始行加入

            filebeat.inputs:
            - input_type: log
            enabled: true
            paths:
            - /var/tomcat/log/*.txt
            - /var/tomcat/log/*.log
            - /var/vts/log/logs/vts/all/*.log
            - /var/log/nginx/*.log

            注意缩进

            c.重启容器

            docker restart filebeat

            请关注微信公众号
            微信二维码
            不容错过
            Powered By Z-BlogPHP