try-catch-finally,被你忽略掉的执行顺序
862
2022-08-23
自用filebeat配置文件
# ============================== 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: falsefilebeat.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"]
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~