当前位置:网站首页>logstash清除sincedb_path上传记录,重传日志数据
logstash清除sincedb_path上传记录,重传日志数据
2022-07-06 00:36:00 【zhangphil】
logstash清除sincedb_path上传记录,重传日志数据
logstash通过一个名为 sincedb_path 下的记录文件记录当前logstash已经上传的日志文件的位置,如果指定为 null,则使用home默认的。清除这个sincedb_path 下的文件,将导致logstash丢失所有上传记录,那么logstash将重新上传所有监控文件(意味着如果原有数据已上传一部分,那么还会出现重复的日志文件)。
不过有时候可以利用 sincedb_path 这一特性,指定sincedb_path 存储的文件,并清除文件里面的所有内容,将会触发logstash重复上传所有日志数据。
例如:
input{
file{
sincedb_path => [ "E:/history/records.data" ]
}
}
如果清除records.data,那么触发重传。
边栏推荐
- Pointer - character pointer
- The global and Chinese markets of dial indicator calipers 2022-2028: Research Report on technology, participants, trends, market size and share
- NLP generation model 2017: Why are those in transformer
- Start from the bottom structure and learn the introduction of fpga---fifo IP core and its key parameters
- Global and Chinese market of valve institutions 2022-2028: Research Report on technology, participants, trends, market size and share
- [Chongqing Guangdong education] Chongqing Engineering Vocational and Technical College
- 图解网络:TCP三次握手背后的原理,为啥两次握手不可以?
- OpenCV经典100题
- Notepad++ regular expression replacement string
- Spark AQE
猜你喜欢
看抖音直播Beyond演唱会有感
Introduction of motor
Opencv classic 100 questions
Go learning - dependency injection
图解网络:TCP三次握手背后的原理,为啥两次握手不可以?
Calculate sha256 value of data or file based on crypto++
Idea remotely submits spark tasks to the yarn cluster
FFmpeg抓取RTSP图像进行图像分析
[groovy] JSON serialization (convert class objects to JSON strings | convert using jsonbuilder | convert using jsonoutput | format JSON strings for output)
[EI conference sharing] the Third International Conference on intelligent manufacturing and automation frontier in 2022 (cfima 2022)
随机推荐
LeetCode 6006. Take out the least number of magic beans
Synchronized and reentrantlock
看抖音直播Beyond演唱会有感
Lone brave man
Model analysis of establishment time and holding time
Pointer - character pointer
LeetCode 6004. Get operands of 0
MDK debug时设置数据实时更新
OS i/o devices and device controllers
Anconda download + add Tsinghua +tensorflow installation +no module named 'tensorflow' +kernelrestart: restart failed, kernel restart failed
I'm interested in watching Tiktok live beyond concert
Search (DFS and BFS)
MCU通过UART实现OTA在线升级流程
Data analysis thinking analysis methods and business knowledge - analysis methods (III)
MIT博士论文 | 使用神经符号学习的鲁棒可靠智能系统
云导DNS和知识科普以及课堂笔记
The global and Chinese markets of dial indicator calipers 2022-2028: Research Report on technology, participants, trends, market size and share
Free chat robot API
NLP generation model 2017: Why are those in transformer
[groovy] JSON serialization (convert class objects to JSON strings | convert using jsonbuilder | convert using jsonoutput | format JSON strings for output)