Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下格式的 splunk 日志:
{"Apple": {"message":"abcdefgh.ijkl","code":"200"} }
我想分别过滤消息“abcdefgh.ijkl”和代码。
在您的查询中尝试此rex命令。
rex
... | rex "message\":\"(?<message>[^\"]+)\",\"code\":\"(?<code>\d+)" | ...