HTTP访问日志服务找到 2 个接口
列出单页访问日志
listHTTPAccessLogs
POST/HTTPAccessLogService/listHTTPAccessLogs
- 定义文件
service_http_access_log.proto- 可用角色
- 管理员用户
rpc listHTTPAccessLogs (ListHTTPAccessLogsRequest) returns (ListHTTPAccessLogsResponse);
请求消息
ListHTTPAccessLogsRequest列出往前的单页访问日志
message ListHTTPAccessLogsRequest {
string requestId = 1; // 上一页请求ID,可选
int64 serverId = 2; // 服务ID
int64 size = 3; // 单页条数
string day = 4; // 日期,格式YYYYMMDD
string hourFrom = 17; // 开始小时
string hourTo = 18; // 结束小时
bool reverse = 5; // 是否反向查找,可选
bool hasError = 6; // 是否有错误,可选
int64 firewallPolicyId = 7; // WAF策略ID,可选
int64 firewallRuleGroupId = 8; // WAF分组ID,可选
int64 firewallRuleSetId = 9; // WAF规则集ID,可选
int64 userId = 10; // 用户ID
bool hasFirewallPolicy = 11; // 是否有WAF策略
string keyword = 12; // 关键词
string ip = 13;
string domain = 14;
int64 nodeClusterId = 15;
int64 nodeId = 16;
int32 partition = 19; // 分区
}
响应消息
ListHTTPAccessLogsResponsemessage ListHTTPAccessLogsResponse {
repeated HTTPAccessLog accessLogs = 1 [deprecated = true];
repeated HTTPAccessLog httpAccessLogs = 4;
string requestId = 2;
bool hasMore = 3;
}