【发布时间】:2023-09-24 02:17:02
【问题描述】:
我正在尝试使用 Splunk 搜索特定 url 的所有基本路径实例(然后可能将其绘制在图表上)。
以下是一些示例 url 和我想要匹配的部分:
http://some-url.com/first/ # match "first"
http://some-url.com/first/second/ # match "first"
http://some-url.com/first/second/third/ # match "first"
这是我正在使用的正则表达式,效果很好:
http:\/\/some-url\.com\/(.*?)\/
我的 Splunk 搜索应该是什么来提取所需的文本?这在 Splunk 中是否可行?
【问题讨论】: