Skip to content

[QUESTION]: processor_split_log_regex 没有分割行 #311

Answered by Takuka0311
liyuefu asked this question in Help
Discussion options

You must be logged in to vote

这里主要是正则表达式的问题。方法1的原理是插件在解析"\[\d+-\d+-\d+\s\d+:\d+:\d+]\s.*"时,"[2022-03-09 18:00:00]"的末尾只有一个换行符,导致插件识别失败,多加一个空格就可以识别成功;方法2则是针对"[2022-03-09 18:00:00]"的格式调整了正则表达式。可以根据自己的数据格式使用合适的正则表达式。

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@liyuefu
Comment options

@messixukejia
Comment options

Answer selected by messixukejia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #306 on August 12, 2022 07:52.