当前位置:网站首页>Logstash excludes specific files or folders from collecting report log data
Logstash excludes specific files or folders from collecting report log data
2022-06-27 15:53:00 【zhangphil】
logstash Exclude specific files or folders from collecting report log data
occasionally , Not going to logstash Collect specific files ( such as .apk,.zip Wait for the documents ) Or folders are reported as log data , It can be used exclude Remove . Write... In the configuration file :
input {
file {
exclude => [ "D:/movie/*.*" ,
"*.zip" , "*.rar" , "*.gz" ,
"*.jpg" , "*.png" , "*.jpeg" , ".bmp" ,
"*.avi" , "*.mov" ,
"*.apk"
]
}
} stay file It's equipped with , The above code first excludes D:/movie Everything under the folder . Then put all the compressed files 、 Picture file 、 Video file 、apk These files are not used as log collection objects .
边栏推荐
- A distribution fission activity is more than just a circle of friends!
- Use of abortcontroller
- 专用发票和普通发票的区别
- 16 -- 删除无效的括号
- Luogu_ P1002 [noip2002 popularization group] crossing the river_ dp
- Expert: those who let you go to a good school with a low score are all Scams
- 洛谷入门1【顺序结构】题单题解
- 老师能给我说一下固收+产品主要投资于哪些方面?
- VS编译遇到的问题
- 手机号码的格式
猜你喜欢

洛谷入门1【顺序结构】题单题解

substrate 技术每周速览 20220411

Vulnerability recurrence ----- 34. Yapi remote command execution vulnerability

E modulenotfounderror: no module named 'psychopg2' (resolved)

Jialichuang EDA professional edition all offline client release

Programming skills: script scheduling

LeetCode每日一练(主要元素)

开源二三事|ShardingSphere 与 Database Mesh 之间不得不说的那些事

SQL parsing practice of Pisa proxy

express
随机推荐
Sigkdd22 | graph generalization framework of graph neural network under the paradigm of "pre training, prompting and fine tuning"
[high concurrency] deeply analyze the callable interface
Design of digital video signal processor based on FPGA (with main code)
Typescript learning materials
Design of vga/lcd display controller based on FPGA (with code)
是不是只要支持JDBC / ODBC协议的客户端恐惧,PolarDB-X可通过相关工具的客户端访问?
SQL parsing practice of Pisa proxy
分布式Session解决方案
Different perspectives
Numerical extension of 27es6
Luogu_ P1007 single log bridge_ thinking
PSS: vous n'êtes qu'à deux niveaux du NMS Free + Lifting point | 2021 Paper
A distribution fission activity is more than just a circle of friends!
28 object method extension
实现简单的三D立方体自动旋转
请问阿里云实验中 k8s 对于3306端口转发,同时开启mysql客户端就会异常终止,是什么原因呢?
利用Redis实现订单30分钟自动取消
避孕套巨头过去两年销量下降40% ,下降原因是什么?
Design principles and ideas: design principles
About tensorflow using GPU acceleration