通过LTS记录WAF全量日志 字段 类型 字段说明 描述 attacklog.category string 日志分类 值为“attack”。 attacklog.time string 日志时间 attacklog.timeiso8601 string 日志的ISO 8601格式时间 attacklog.policyid string 防护策略ID attacklog.level string 防护策略层级 表示Web基础防护策略级别。 1:宽松 2:中等 3:严格 attacklog.attack string 发生攻击的类型 发生攻击的类型,仅在攻击日志中出现。 default:默认 sqli:SQL注入攻击 xss:跨站脚本攻击 webshell:WebShell攻击 robot:恶意爬虫 cmdi:命令注入攻击 rfi:远程文件包含 lfi: 本地文件包含 illegal:非法请求 vuln:漏洞攻击 cc:命中CC防护规则 customcustom:命中精准防护规则 customwhiteblackip:命中IP黑白名单规则 customgeoip:命中地理位置控制规则 antitamper: 命中网页防篡改规则 anticrawler:命中JS挑战反爬虫规则 leakage:命中敏感信息泄露规则 antiscanhighfreqscan:防扫描高频扫描攻击 followedaction:攻击惩罚 attacklog.action string 防护动作 WAF防护攻击动作。 block:拦截 log:仅记录 captcha:人机验证 attacklog.subtype string 爬虫的子类型 当attack为robot时,该字段不为空。 scripttool:脚本工具 searchengine:搜索引擎 scaner:扫描工具 uncategorized:其他爬虫 attacklog.rule string 触发的规则ID或者自定义的策略类型描述 attacklog.rulename string 标识自定义的策略类型描述。 命中基础防护规则时该字段为空。 attacklog.location string 触发恶意负载的位置 attacklog.reqbody sting 标识请求体 attacklog.respheaders string 响应头 attacklog.hitdata string 触发恶意负载的字符串 attacklog.respbody string 响应体 attacklog.backend.protocol string 标识当前后端协议 attacklog.backend.alive string 标识当前后端状态 attacklog.backend.port string 标识当前后端端口 attacklog.backend.host string 标识当前后端Host值 attacklog.backend.type string 标识当前后端Host 类型 IP 或域名 attacklog.backend.weight number 标识当前后端权重 attacklog.status string 请求的响应状态码 attacklog.upstreamstatus string 标识请求的源站响应状态码 attacklog.reqid string 随机ID标识 由引擎IP尾缀、请求时间戳、NGINX分配的请求ID组成。 attacklog.requestid string 标识请求唯一ID NGINX分配的请求ID。 attacklog.id string 攻击ID 攻击的ID标识。 attacklog.method string 请求方法 attacklog.sip string 客户端请求IP attacklog.sport string 客户端请求端口 attacklog.host string 请求的服务器域名 attacklog.httphost string 请求的服务器域名 attacklog.hport string 请求的服务器端口 attacklog.uri string 请求URL 不包括域名。 attacklog.header json string,decode后为json table 请求header信息 attacklog.mutipart json string,decode后为json table 请求multipart header 用于文件上传。 attacklog.cookie json string,decode后为json table 请求Cookie信息 attacklog.params json string,decode后为json table 请求URI后的参数信息 attacklog.bodybytessent string 发送给客户端的响应体字节数 WAF发送给客户端的响应体字节数。 attacklog.upstreamresponsetime string 后端服务器从上游服务接收响应内容所经过的时间,单位为秒。 多次请求响应的时间,使用逗号分隔。 attacklog.engineid string 引擎的唯一标识 attacklog.regionid string 标识引擎所在region的ID attacklog.engineip string 标识引擎IP attacklog.processtime string 引擎的检测用时 attacklog.remoteip string 标识请求的四层客户端IP attacklog.xforwardedfor string 标识请求头中“XForwardedFor”的内容 attacklog.cdnsrcip string 标识请求头中“CdnSrcIp”的内容 attacklog.xrealip string 标识请求头中“XRealIP”的内容 attacklog.groupid string 日志组ID 对接LTS服务的日志组ID。 attacklog.attackstreamid string 日志流ID 与“groupid”相关,是日志组下用户的accessstream的ID。 attacklog.hostid string 防护域名ID(upstreamid) attacklog.tenantid string 防护域名的租户ID attacklog.projectid string 防护域名的项目ID attacklog.enterpriseprojectid string 标识请求域名所属企业项目ID attacklog.webtag string 标识网站名称 attacklog.reqbody string 识请求体(超过1K 记录时会被截断)