定义flume源拦截器的regex到文件中的文件管理器日志

9fkzdhlc  于 2021-06-04  发布在  Flume
关注(0)|答案(0)|浏览(176)

我想用拦截器过滤一个日志文件(事件文件),这个日志文件包含整个系统的日志,我只想过滤日志行(事件行)
com.threesixone.analytic.service.actionlogaspect,只想获取日志行的json部分,
有谁能帮我使用拦截器的正则表达式吗?我很难理解要过滤的模式。
下面是一个日志行的示例:

2015-11-04 11:09:30,383 INFO : com.threesixone.analytic.service.ActionLogAspect - {"page":"PRODUCT_LIST","controller":"ProductController","product":{"productID":10004,"category":"321","sportCategories":["32"],"name":"Men pullover","gender":"Men","sport":"Running","retailPrice":239.0,"sellPrice":239.0,"sellQuantity":0,"taxablePrice":0.0,"origin":"361° Sports","stockQuantity":1000,"subTotal":0.0},"browser":"Chrome-43.0.2357.130","action":"VIEW","timestamp":1446610170382,"customerType":"GUEST","sessionId":"1et7dn6qbbfui1xszk627pz0p9"}

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题