[#37] 修复log时间戳测试问题

This commit is contained in:
2025-11-06 17:20:40 +08:00
parent d1fad4a05a
commit 0b9268332f
10 changed files with 34 additions and 30 deletions

View File

@@ -22,6 +22,6 @@
[PARSER]
Name timestamp_parser
Format regex
Regex ^(?<timestamp>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\s+(?<level>\w+)\s+(?<message>.*)$
Regex ^(?<timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|[+-]\d{2}:?\d{2}))\s+(?<level>\w+)\s+(?<message>.*)$
Time_Key timestamp
Time_Format %Y-%m-%d %H:%M:%S
Time_Format %Y-%m-%dT%H:%M:%S%z