当前位置:网站首页>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,那么触发重传。
边栏推荐
- Codeforces gr19 D (think more about why the first-hand value range is 100, JLS yyds)
- 常用API类及异常体系
- MIT doctoral thesis | robust and reliable intelligent system using neural symbol learning
- Free chat robot API
- Global and Chinese markets of universal milling machines 2022-2028: Research Report on technology, participants, trends, market size and share
- For a deadline, the IT fellow graduated from Tsinghua suddenly died on the toilet
- Classical concurrency problem: the dining problem of philosophers
- Idea远程提交spark任务到yarn集群
- The value of applet containers
- Illustrated network: the principle behind TCP three-time handshake, why can't two-time handshake?
猜你喜欢

多线程与高并发(8)—— 从CountDownLatch总结AQS共享锁(三周年打卡)

FPGA内部硬件结构与代码的关系
![[EI conference sharing] the Third International Conference on intelligent manufacturing and automation frontier in 2022 (cfima 2022)](/img/39/9d189a18f3f75110b400506e274391.png)
[EI conference sharing] the Third International Conference on intelligent manufacturing and automation frontier in 2022 (cfima 2022)

How to make your own robot

Browser reflow and redraw
![[groovy] XML serialization (use markupbuilder to generate XML data | create sub tags under tag closures | use markupbuilderhelper to add XML comments)](/img/d4/4a33e7f077db4d135c8f38d4af57fa.jpg)
[groovy] XML serialization (use markupbuilder to generate XML data | create sub tags under tag closures | use markupbuilderhelper to add XML comments)

Extracting profile data from profile measurement

LeetCode 1189. Maximum number of "balloons"
![Atcoder beginer contest 254 [VP record]](/img/13/656468eb76bb8b6ea3b6465a56031d.png)
Atcoder beginer contest 254 [VP record]

Calculate sha256 value of data or file based on crypto++
随机推荐
curlpost-php
看抖音直播Beyond演唱会有感
Room cannot create an SQLite connection to verify the queries
The detailed page returns to the list and retains the original position of the scroll bar
Spark DF adds a column
Data analysis thinking analysis methods and business knowledge - analysis methods (III)
Idea远程提交spark任务到yarn集群
Power query data format conversion, Split Merge extraction, delete duplicates, delete errors, transpose and reverse, perspective and reverse perspective
Opencv classic 100 questions
Intensive learning weekly, issue 52: depth cuprl, distspectrl & double deep q-network
Leetcode:20220213 week race (less bugs, top 10% 555)
建立时间和保持时间的模型分析
详细页返回列表保留原来滚动条所在位置
CTF daily question day44 rot
可恢复保险丝特性测试
[groovy] JSON serialization (jsonbuilder builder | generates JSON string with root node name | generates JSON string without root node name)
Basic introduction and source code analysis of webrtc threads
I'm interested in watching Tiktok live beyond concert
An understanding of & array names
XML配置文件