dever 7 年之前
父节点
当前提交
863a813a15
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      container/conf/elastic/filebeat/filebeat.yml

+ 4 - 3
container/conf/elastic/filebeat/filebeat.yml

@@ -20,8 +20,8 @@ filebeat.prospectors:
   # Paths that should be crawled and fetched. Glob based paths.
   paths:
     - "/root/nginx/*.log"
-    #- "/root/docker/*/*.log"
-    #- "/root/php7/*.log"
+    - "/root/docker/*/*.log"
+    - "/root/php7/*.log"
     #- c:\programdata\elasticsearch\logs\*
   encoding: utf-8
 
@@ -89,7 +89,8 @@ output.elasticsearch:
   #protocol: "https"
   username: "elastic"
   password: "changeme"
-  index: "nginx-%{+yyyy.MM.dd}"
+  #index: "nginx-%{+yyyy.MM.dd}"
+  #curl -XPUT 'http://elk-ek:9200/_ingest/pipeline/nginx-pipeline' -d@/work/pipeline.json
   #pipeline: "nginx-pipeline"
 
 #----------------------------- Logstash output --------------------------------