首页 > 解决方案 > 使用正则表达式模式的 subString 日志

问题描述

我需要使用没有脚本的正则表达式模式从这个 log4j2 日志中获取黑色部分,我不知道如何感谢

order-preferredaction, authenticationresponse, Access-Control-Max-Age, BCS-Device-Id, BCS-Device-OS-Name, BCS-Device-Model-Name, BCS-Device-Model-Manufacturer, BCS-Device-Screen-大小、BCS-Device-OS-Version、BCS-Device-DPI、BCS-Device-App-Name、BCS-Device-App-Version、Third-Party-Application-Id、ECS-Signature-Platform-Use-Case、 BCS-Process-Code, BCS-Operation-Tracer, BCS-Process-Tracer, order-preferredaction, order-id, order-accepteddisclaimers", X-XSS-Protection:"1; mode=block", Pragma:"no-cache", Referrer-Policy:"same-origin", Content-Security-Policy:"script-src 'self'", Date:"Thu, 15 Jul 2021 06:47: 59 GMT",连接:"keep-alive",严格传输安全:"max-age=31536000;includeSubDomains",传输编码:"chunked",访问控制允许方法:tsec:“eJxtlNmKq1gARX/lUq+hSo0zVBXE2Tgbx7w0Rz0O0TjH6eu7Grov96FfN”,访问控制允许来源:“*”,消费者请求ID:“c580c0cd-4589-4156”,X-Content-Type-Options:“nosniff”,Content-Type:“应用程序/json; charset=UTF-8"]>'

标签: regexpattern-matchinglog4j2

解决方案


推荐阅读