更改filebast配置

This commit is contained in:
dxin
2025-12-11 15:17:03 +08:00
parent 7ad9956c5d
commit 6f7b24926d
8 changed files with 35 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ processors:
when:
equals:
log_type: admin.log
tokenizer: '%{timestamp} %{level} %{pid} --- \\[%{thread}\\] %{class} : %{message}'
tokenizer: '%{timestamp} %{level} %{pid} --- [%{thread}] %{class} : [%{app_name->}] %{message}'
field: "message"
target_prefix: "mylog"
ignore_missing: true

View File

@@ -9,7 +9,7 @@
environment: us-pord # 自定义字段,标识机器环境名称
instance: us-prod-01 # 自定义字段,标识机器名称
fields_under_root: true
multiline.pattern: '^\d{4}-\d{2}-\d{2}\ \d{2}:\d{2}:\d{2}\.\d{3}'
multiline.pattern: '^\d{4}-\d{2}-\d{2}-\d{2}:\d{2}:\d{2}\.\d{3}'
multiline.negate: true
multiline.match: after
ignore_older: 24h # 忽略旧日志文件(避免处理已归档的日志)