选应用,写策略,看懂事件。
从一次请求到一条事件,每一步都有可检查的依据。
- 选择要观察的应用按进程、服务或网卡确定采集范围,验证覆盖和应用归因。
- 定义值得关注的行为指定 URL、慢请求或错误率;先预览和回放,再激活策略。
- 追到规则与投递结果查看规则版本、进程和连接,分别核对文件与 Dataway 的确认。
示例:关注 /checkout 的错误响应
lua
rule "checkout_failed" do
on "http.transaction"
where not incomplete and not truncated
when http.path == "/checkout" and http.status == "500"
emit "checkout.failure" do
severity = "warning"
message = "Checkout request failed"
end
end