0

我使用 F5,但我遇到了问题。我想构建一个检查以下场景的 Irule

url=="domain.com" and Content-Length(of the request) > 400
then
alert(response) 

是否可以创建此 Irule?

4

2 回答 2

2

我不确定您的警报操作期望是什么(这里用 #take action 块模拟),但规则非常简单:

when HTTP_REQUEST {
  if { ([HTTP::host] eq "domain.com") and ([HTTP::header Content-Length] > 400) } {
     # take action
  }
}
于 2019-08-01T19:34:39.540 回答
0

您的意思是要使用 alertd 来生成电子邮件或 SNMP 陷阱吗?如果是这样,那么只要 alertd 正在查找您放入日志的错误,就会采取警报操作。

于 2019-09-02T17:04:13.990 回答