dever 7 年之前
父節點
當前提交
dfee5c7895
共有 1 個文件被更改,包括 13 次插入3 次删除
  1. 13 3
      container/conf/elastic/filebeat/filebeat.yml

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

@@ -11,16 +11,26 @@
 
 filebeat.prospectors:
 
+- input_type: nginx_log
+
+  # Paths that should be crawled and fetched. Glob based paths.
+  paths:
+    - "/root/nginx/*.log"
+
+- input_type: docker_log
+
+  # Paths that should be crawled and fetched. Glob based paths.
+  paths:
+    - "/root/docker/*/*.log"
+
 # Each - is a prospector. Most options can be set at the prospector level, so
 # you can use different prospectors for various configurations.
 # Below are the prospector specific configurations.
 
-- input_type: log
+- input_type: dever_log
 
   # Paths that should be crawled and fetched. Glob based paths.
   paths:
-    - "/root/nginx/*.log"
-    - "/root/docker/*/*.log"
     - "/root/php7/*.log"
     #- c:\programdata\elasticsearch\logs\*