# ============================== Filebeat inputs ===============================
filebeat.inputs:
- type: log
enabled: true
paths:
- /usr/local/kong/logs/error.log
ignore_older: 2h
clean_inactived: 48h
close_timeout: 5m
scan_frequency: 25s
tags: ["kong-error"]
- type: log
enabled: true
paths:
- /usr/local/kong/logs/access.log
ignore_older: 2h
clean_inactived: 48h
close_timeout: 5m
scan_frequency: 25s
tags: ["kong-access"]
- type: log
enabled: true
paths:
- /usr/local/kong/logs/admin_access.log
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["kong-admin"]
- type: log
enabled: true
paths:
- /usr/local/nginx/logs/*.log
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["nginx"]
- type: log
enabled: true
paths:
- /data/prod/service/advanced-coupon/log/*.log
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["advanced-coupon"]
- type: log
enabled: true
paths:
- /data/prod/service/advanced-job/log/*.log
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["advanced-job"]
- type: log
enabled: true
paths:
- /data/prod/service/advanced-order/log/*.log
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["advanced-order"]
- type: log
enabled: true
paths:
- /data/prod/service/advanced-product/log/*.log
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["advanced-product"]
- type: log
enabled: true
paths:
- /data/prod/service/advanced-report/log/*.log
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["advanced-report"]
- type: log
enabled: true
paths:
- /data/prod/service/advanced-shop/log/*.log
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["advanced-shop"]
- type: log
enabled: true
paths:
- /data/prod/service/advanced-statistics/log/*.log
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["advanced-statistics"]
- type: log
enabled: true
paths:
- /data/prod/service/gdd-bill/log/access/*
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["gdd-bill"]
- type: log
enabled: true
paths:
- /data/prod/service/gdd-cashier/log/access/*
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["gdd-cashier-access"]
- type: log
enabled: true
paths:
- /data/prod/service/gdd-cashier/log/sql/*
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["gdd-cashier-sql"]
- type: log
enabled: true
paths:
- /data/prod/service/gdd-common/log/*
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["gdd-common"]
- type: log
enabled: true
paths:
- /data/prod/service/gdd_message/log/*
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["gdd_message"]
- type: log
enabled: true
paths:
- /data/prod/service/gdd-wxcommon/log/access/*
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["gdd-wxcommon"]
- type: log
enabled: true
paths:
- /data/prod/service/gdd-xuser/logs/*
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["gdd-xuser"]
- type: log
enabled: true
paths:
- /data/prod/service/order/log/*
ignore_older: 2h
clean_inactived: 48h
scan_frequency: 25s
close_timeout: 5m
tags: ["order"]
# ============================== Filebeat modules ==============================
setup.ilm.enabled: false
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
username: elastic
password: BeDeL2e1JS1CynGKfnwq
hosts: ["172.24.93.112:9200"]
indices:
- index: "kong-access-%{+yyyy.MM.dd}"
when.contains:
tags: "kong-access"
- index: "kong-error-%{+yyyy.MM.dd}"
when.contains:
tags: "kong-error"
- index: "kong-admin-%{+yyyy.MM.dd}"
when.contains:
tags: "kong-admin"
- index: "nginx-%{+yyyy.MM.dd}"
when.contains:
tags: "nginx"
- index: "advanced-coupon-%{+yyyy.MM.dd}"
when.contains:
tags: "advanced-coupon"
- index: "advanced-job-%{+yyyy.MM.dd}"
when.contains:
tags: "advanced-job"
- index: "advanced-order-%{+yyyy.MM.dd}"
when.contains:
tags: "advanced-order"
- index: "advanced-product-%{+yyyy.MM.dd}"
when.contains:
tags: "advanced-product"
- index: "advanced-report-%{+yyyy.MM.dd}"
when.contains:
tags: "advanced-report"
- index: "advanced-shop-%{+yyyy.MM.dd}"
when.contains:
tags: "advanced-shop"
- index: "advanced-statistics-%{+yyyy.MM.dd}"
when.contains:
tags: "advanced-statistics"
- index: "gdd-bill-%{+yyyy.MM.dd}"
when.contains:
tags: "gdd-bill"
- index: "gdd-cashier-access-%{+yyyy.MM.dd}"
when.contains:
tags: "gdd-cashier-access"
- index: "gdd-cashier-sql-%{+yyyy.MM.dd}"
when.contains:
tags: "gdd-cashier-sql"
- index: "gdd-common-%{+yyyy.MM.dd}"
when.contains:
tags: "gdd-common"
- index: "gdd_message-%{+yyyy.MM.dd}"
when.contains:
tags: "gdd_message"
- index: "gdd-wxcommon-%{+yyyy.MM.dd}"
when.contains:
tags: "gdd-wxcommon"
- index: "gdd-xuser-%{+yyyy.MM.dd}"
when.contains:
tags: "gdd-xuser"
- index: "order-%{+yyyy.MM.dd}"
when.contains:
tags: "order"
processors:
- drop_fields:
fields: ["agent.ephemeral_id","agent.gostname","agent.name","agent.version","ecs.version","fields.index","input.type","_id","_type","agent.type"]
自用filebeat配置文件
原创a317418365 博主文章分类:运维 ©著作权
文章标签 nginx sql elasticsearch filebeat 文章分类 运维
©著作权归作者所有:来自51CTO博客作者a317418365的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Filebeat 实战配置文件
Filebeat 实战配置文件
Filebeat 实战配置文件