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\*