logging - Best way to find out which log statements are generating the most log volume?
问题描述
I'm hosting a backend service in AWS, and for some reason the service has been logging excessively for about a week now. I downloaded the logs of the service, and now I'm trying to find some pattern in those log files to see which log statement(s) are responsible for the excessive logging volume.
I did this before by basically cutting away the timestamps, sorting alphabetically and then counting how often each line occurs. That sometimes works, but of course as soon as there is a dynamic part in the log line this approach fails.
So ideally I'd like some kind of tool that can analyse my logs and fuzzy match log lines to determine which patterns occur the most. Does any such tool exist?
解决方案
推荐阅读
- haskell - 从数字列表中返回加权平均值的函数
- swift - 为什么我的循环网络请求无法在我的 SwiftUI 代码中下载相同数量的项目?
- django - 变量内的Django模板html变量
- android - 无法在 Emulator Android API 31 上安装应用程序。原因是安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED?
- flutter - 与 android 相比,iOS 中的 HTTP GET 和 POST 非常慢
- numpy - Python numpy:np.float64 有多少位?
- python - 我如何操作数据框 - Python
- reporting-services - 如何将来自不同查询的字段添加到 SRSS 报表生成器中表的不同列中?
- postgresql - pg_dump 工具是否导出死元组
- android - 如何在解析云代码功能中获取用户 ID?