参考链接

filebat:
https://www.elastic.co/cn/downloads/beats/filebeat
https://www.elastic.co/cn/products/beats/filebeat

Elastic Stack :
https://www.elastic.co/cn/solutions/logging

ELK 架构和 Filebeat 工作原理详解:
https://www.ibm.com/developerworks/cn/opensource/os-cn-elk-filebeat/index.html

Filebeat的架构分析、配置解释与示例:
https://zhuanlan.zhihu.com/p/23049700

Elastic 技术栈之 Filebeat:
https://www.cnblogs.com/jingmoxukong/p/8185321.html

elasticsearch docker compose:
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

docker compose:
https://github.com/maxyermayank/docker-compose-elasticsearch-kibana/blob/master/docker-compose.yml
https://gist.github.com/shreyu86/90377c42a78f1ff2d0e17a9ad502ac31

docker es demo:
https://github.com/rusher81572/elasticsearch-demo/blob/master/docker-compose.yml

elk 设置密码:
https://blog.csdn.net/qq_41980563/article/details/88725584

install elasticsearch with docker:
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

kibana compose:
https://discuss.elastic.co/t/kibana-error-connecting-to-es-on-docker-cannot-revive-connection/133335/4

docker-elk:
https://github.com/deviantony/docker-elk/wiki/External-applications

logstash:
https://www.elastic.co/guide/en/logstash/7.1/input-plugins.html

es+kib+logtash+filebeat实践
https://blog.csdn.net/ma15732625261/article/details/79821160
https://cloud.tencent.com/developer/article/1353068

docker-compose配置

version: '2.2'
services:
  es01:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.1.0
    container_name: es01
    environment:
      - node.name=es01
      - discovery.seed_hosts=es02
      - cluster.initial_master_nodes=es01,es02
      - cluster.name=docker-cluster
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - esdata01:/usr/share/elasticsearch/data
    ports:
      - 9200:9200
    networks:
      - esnet
  es02:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.1.0
    container_name: es02
    environment:
      - node.name=es02
      - discovery.seed_hosts=es01
      - cluster.initial_master_nodes=es01,es02
      - cluster.name=docker-cluster
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - esdata02:/usr/share/elasticsearch/data
    networks:
      - esnet
  kibana:
    image: 'docker.elastic.co/kibana/kibana:7.1.0'
    container_name: kibana
    environment:
      SERVER_NAME: localhost
      ELASTICSEARCH_HOSTS: http://es01:9200
    ports:
      - '5601:5601'
    networks:
      - esnet
  headPlugin:
    image: 'mobz/elasticsearch-head:5'
    container_name: head
    ports:
      - '9002:9100'
    networks:
      - esnet
  filebeat:
    image: docker.elastic.co/beats/filebeat:7.1.0
    command: --strict.perms=false
    environment:
      - setup.kibana.host=kibana:5601
      - output.elasticsearch.hosts=["http://127.0.0.1:9200"]
    ports:
      - 9001:9000
    volumes:
      - /var/lib/docker/containers:/var/lib/docker/containers:ro
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - esnet
volumes:
  esdata01:
    driver: local
  esdata02:
    driver: local

networks:
  esnet:

php使用生成器读取超大文件

<?php function getLines($file) { $f = fopen($file, 'r'); try { while ($line = fgets($f)) { yield $line; ...

阅读全文

php获取字符串里面的图片,xpath方式

代码 <?php $html = <<<str <html> <head> <title>123</title> </head> <body> <img src=&quo...

阅读全文

Thinkphp5 in查询结果按照in里面的顺序排

或许有人会注意过,但我以前真不知道 SQL: select * from table where id IN (3,6,9,1,2,5,8,7); 这样的情况取出来后,其实,id还是按1,2,3,4,5,6,7,8,9,排序...

阅读全文

欢迎留言