站点日志

日志列表

请求地址:
  • {api_dir}/log/:string

请求方式:

  • GET

请求参数:

  • 参数 base64字符串,例:对象{‘op’:’flow’, ‘month’:‘201706’, ‘day’:21, ‘vhost’:’site1’, ‘aggvalue’:’Status’}转换成json字符串,再进行base64编码后的字符串
拓展:
op :日志操作,(flow|趋势日志, searchcount|top10日志) month :获取该月日志,格式:201706 day :获取该日日志,格式:21 vhost :站点名称,如:site1 aggvalue:获取指定项日志,当op为flow时,此项不填,当op值为searchcount是,该值为[Status(状态码)|Ip(ip)|Refer(来源)|Referdomain(来源域名)|Domain(域名)|Method(方法)|Httpprotocol(http协议)|Cc(cc攻击)]之一;

响应数据:

返回成功数据参考:
趋势:{“status”:{“code”:1,”created_at”:”2017-06-09 16:55:32”,”message”:”u64cdu4f5cu6210u529f”},”info”:{“total”:118,”ip_total”:3,”cc_total”:0,”querycount”:[{“cc_sum”:{“buckets”:[{“doc_count”:17,”key”:0}],”doc_count_error_upper_bound”:0,”sum_other_doc_count”:0},”doc_count”:17,”ip_sum”:{“value”:2},”key”:1496970000000,”key_as_string”:”09:00”},{“cc_sum”:{“buckets”:[],”doc_count_error_upper_bound”:0,”sum_other_doc_count”:0},”doc_count”:0,”ip_sum”:{“value”:0},”key”:1496973600000,”key_as_string”:”10:00”},{“cc_sum”:{“buckets”:[],”doc_count_error_upper_bound”:0,”sum_other_doc_count”:0},”doc_count”:0,”ip_sum”:{“value”:0},”key”:1496977200000,”key_as_string”:”11:00”},{“cc_sum”:{“buckets”:[],”doc_count_error_upper_bound”:0,”sum_other_doc_count”:0},”doc_count”:0,”ip_sum”:{“value”:0},”key”:1496980800000,”key_as_string”:”12:00”},{“cc_sum”:{“buckets”:[],”doc_count_error_upper_bound”:0,”sum_other_doc_count”:0},”doc_count”:0,”ip_sum”:{“value”:0},”key”:1496984400000,”key_as_string”:”13:00”},{“cc_sum”:{“buckets”:[],”doc_count_error_upper_bound”:0,”sum_other_doc_count”:0},”doc_count”:0,”ip_sum”:{“value”:0},”key”:1496988000000,”key_as_string”:”14:00”},{“cc_sum”:{“buckets”:[],”doc_count_error_upper_bound”:0,”sum_other_doc_count”:0},”doc_count”:0,”ip_sum”:{“value”:0},”key”:1496991600000,”key_as_string”:”15:00”},{“cc_sum”:{“buckets”:[{“doc_count”:101,”key”:0}],”doc_count_error_upper_bound”:0,”sum_other_doc_count”:0},”doc_count”:101,”ip_sum”:{“value”:1},”key”:1496995200000,”key_as_string”:”16:00”}]},”op”:”flow”} top10:{“status”:{“code”:1,”created_at”:”2017-06-09 16:56:01”,”message”:”u64cdu4f5cu6210u529f”},”info”:[{“doc_count”:101,”key”:”192.168.1.201”},{“doc_count”:16,”key”:”192.168.1.113”},{“doc_count”:1,”key”:”127.0.0.1”}],”op”:”searchcount”}
返回失败数据参考:
{“status”:{“code”:10,”created_at”:”2017-06-21 10:26:42”,”message”:”u64cdu4f5cu5931u8d25”},”message”:”u83b7u53d6u6570u636eu5931u8d25,code=0”,”op”:”flow”}

內容目录

上一个主题

防火墙设置-高级

下一个主题

站点自定义错误API

本页