日志查询命令汇总

排除特定服务的错误日志查询

severityText:error and not service:"netmicro-middle-ad-consumer" and not service:"netmicro-dramatranslationplatform-job" and not service:"netmicro-novelflow-attributionplatform-app" and not service:"netmicro-middle-manage" and not service:"netmicro-bookcity-paid-web-app" and not service:"netmicro-translationplatform-manage" and not service:"netmicro-ads-app" and not service:"netmicro-multitranslation-host" and not service:"netmicro-bookstore-audio-host" and not service:"netmicro-bookstore-sensors" and not service:"netmicro-aicreation-job" and not service:"netmicro-bookstore-sync" and not service:"netmicro-bookstore-blazor" and not service:"netmicro-middle-app" and not service:"anystories-netmicro-user-app" and not service:"netmicro-novelflow-middleground-host" and not service:"netmicro-user-paid-app" and not service:"netmicro-attribution-host" and not service:"netmicro-webwriter-bookservice-client" and not service:"netmicro-ads-manage" and not service:"netmicro-bookstore-app" and not service:"netmicro-attribution-app"

包含

severityText: "error" AND (service: "netmicro-novelix-user-manage" OR service: "netmicro-novelix-user-app" OR service: "netmicro-welfare-app")
severityText: "error" AND (service: "netmicro-novelix-user-app" and attribute.RequestPath:"/api/v1/userapp/user/memberinfo")


service:"netmicro-novelflow-payment-app" and attribute.RequestPath:"/api/v1/paymentapp/order/subscriptions"

迭代相关接口日志观察

迭代涉及的接口需要通过日志进行分析,反向排查接口性能情况
1、查询语句未加索引、未命中索引
2、未增加缓存
3、多次开启db等情况