【发布时间】:2015-01-15 16:17:09
【问题描述】:
我正在尝试根据我的 apache 访问日志获取饼图。我想显示哪个上下文被调用了多少次。
假设我有几个请求 URI,例如
/de/some/german/page
/en/some/english/page
/en/the/next/english/page
/ApplicationContext/path/within/application
/en/and/yet/another/english/page
根据这些信息,我想得到一个图表或表格来说明
de = 1 hit
en = 3 hits
ApplicationContext = 1 hit
有没有办法从请求 URI 中提取上下文并计算这些子字符串?我更愿意在 kibana 中解决这个问题,但如果我只能通过在我的 logstash 配置中添加一些过滤器 grok oder regex 过滤器来实现这一点,我也会这样做。但因此我也需要朝着正确的方向前进;-)
谢谢和问候。塞巴斯蒂安
【问题讨论】: