当前位置:网站首页>logstash排除特定文件或文件夹不采集上报日志数据
logstash排除特定文件或文件夹不采集上报日志数据
2022-06-27 15:33:00 【zhangphil】
logstash排除特定文件或文件夹不采集上报日志数据
有时候,并不打算让logstash采集特定的文件(比如.apk,.zip等文件)或文件夹作为日志数据上报,可以用exclude剔除掉。在配置文件写:
input {
file {
exclude => [ "D:/movie/*.*" ,
"*.zip" , "*.rar" , "*.gz" ,
"*.jpg" , "*.png" , "*.jpeg" , ".bmp" ,
"*.avi" , "*.mov" ,
"*.apk"
]
}
} 在file里面配置,上面代码首先排除D:/movie文件夹下面所有内容。然后把所有压缩文件、图片文件、视频文件、apk这些文件不作为日志采集对象。
边栏推荐
- Design of electronic calculator system based on FPGA (with code)
- [digital signal processing] discrete time signal (discrete time signal knowledge points | signal definition | signal classification | classification according to certainty | classification according t
- Programming skills: script scheduling
- Beginner level Luogu 2 [branch structure] problem list solution
- Leetcode daily practice (Yanghui triangle)
- Difference between special invoice and ordinary invoice
- Principle Comparison and analysis of mechanical hard disk and SSD solid state disk
- [digital signal processing] discrete time signal (analog signal, discrete time signal, digital signal | sampling leads to time discrete | quantization leads to amplitude discrete)
- What are the characteristics of fixed income + products?
- Introduce you to ldbc SNB, a powerful tool for database performance and scenario testing
猜你喜欢

LeetCode每日一练(无重复字符的最长子串)

Pisa-Proxy 之 SQL 解析实践

Problems encountered in vs compilation

Sigkdd22 | graph generalization framework of graph neural network under the paradigm of "pre training, prompting and fine tuning"

How is the London Silver point difference calculated

Centos8 PostgreSQL initialization error: initdb: error: invalid locale settings; check LANG and LC_* environment

一场分销裂变活动,不止是发发朋友圈这么简单!

Leetcode daily practice (Yanghui triangle)

守护雪山之王:这些AI研究者找到了技术的新「用武之地」

事务的四大特性
随机推荐
[kotlin] the next day
我想買固收+產品,但是不了解它主要投資哪些方面,有人知道嗎?
sql注入原理
Knowledge map model
About tensorflow using GPU acceleration
LeetCode每日一练(主要元素)
洛谷入门2【分支结构】题单题解
Pisa-Proxy 之 SQL 解析实践
February 16, 2022 freetsdb compilation and operation
In the Alibaba cloud experiment, if the k8s forwards to port 3306 and the MySQL client is turned on, it will terminate abnormally. What is the reason?
E modulenotfounderror: no module named 'psychopg2' (resolved)
Eolink launched a support program for small and medium-sized enterprises and start-ups to empower enterprises!
Indexeddb learning materials
Centos8 PostgreSQL initialization error: initdb: error: invalid locale settings; check LANG and LC_* environment
PSS:你距离NMS-free+提点只有两个卷积层 | 2021论文
Leetcode daily practice (longest substring without repeated characters)
Markdown syntax
Design of digital video signal processor based on FPGA (with main code)
避孕套巨头过去两年销量下降40% ,下降原因是什么?
Create a database and use