当前位置: 首页 > news >正文

网站安全认证去哪做百度推广运营公司

网站安全认证去哪做,百度推广运营公司,莱芜网站建设莱芜,网络运维工程师自学1.创建好waf-cdn 并且设置好规则和log存储方式为s3 2. Amazon Athena 服务 使用 (注意s3桶位置相同得区域) https://docs.aws.amazon.com/zh_cn/athena/latest/ug/waf-logs.html#waf-example-count-matched-ip-addresses 官方文档参考,建一个分区查询表…

1.创建好waf-cdn 并且设置好规则和log存储方式为s3

在这里插入图片描述

2. Amazon Athena 服务 使用 (注意s3桶位置相同得区域)

https://docs.aws.amazon.com/zh_cn/athena/latest/ug/waf-logs.html#waf-example-count-matched-ip-addresses
官方文档参考,建一个分区查询表

不能直接使用 因为是cdn 资源需要修改相关字段

CREATE EXTERNAL TABLE `waf_logs`(`timestamp` bigint,`formatversion` int,`webaclid` string,`terminatingruleid` string,`terminatingruletype` string,`action` string,`terminatingrulematchdetails` array <struct <conditiontype: string,sensitivitylevel: string,location: string,matcheddata: array < string >>>,`httpsourcename` string,`httpsourceid` string,`rulegrouplist` array <struct <rulegroupid: string,terminatingrule: struct <ruleid: string,action: string,rulematchdetails: array <struct <conditiontype: string,sensitivitylevel: string,location: string,matcheddata: array < string >>>>,nonterminatingmatchingrules: array <struct <ruleid: string,action: string,overriddenaction: string,rulematchdetails: array <struct <conditiontype: string,sensitivitylevel: string,location: string,matcheddata: array < string >>>,challengeresponse: struct <responsecode: string,solvetimestamp: string>,captcharesponse: struct <responsecode: string,solvetimestamp: string>>>,excludedrules: string>>,
`ratebasedrulelist` array <struct <ratebasedruleid: string,limitkey: string,maxrateallowed: int>>,`nonterminatingmatchingrules` array <struct <ruleid: string,action: string,rulematchdetails: array <struct <conditiontype: string,sensitivitylevel: string,location: string,matcheddata: array < string >>>,challengeresponse: struct <responsecode: string,solvetimestamp: string>,captcharesponse: struct <responsecode: string,solvetimestamp: string>>>,`requestheadersinserted` array <struct <name: string,value: string>>,`responsecodesent` string,`httprequest` struct <clientip: string,country: string,headers: array <struct <name: string,value: string>>,uri: string,args: string,httpversion: string,httpmethod: string,requestid: string>,`labels` array <struct <name: string>>,`captcharesponse` struct <responsecode: string,solvetimestamp: string,failureReason: string>,`challengeresponse` struct <responsecode: string,solvetimestamp: string,failureReason: string>,`ja3Fingerprint` string,`oversizefields` string,`requestbodysize` int,`requestbodysizeinspectedbywaf` int
)
PARTITIONED BY ( 
`region` string, 
`date` string) 
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe' 
STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' 
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION's3://<aws-waf-logs-xxx>/AWSLogs/<accountID>/WAFLogs/cloudfront/<waf-acl>'
TBLPROPERTIES('projection.enabled' = 'true','projection.region.type' = 'enum','projection.region.values' = 'cloudfront','projection.date.type' = 'date','projection.date.range' = '2024/07/08,NOW','projection.date.format' = 'yyyy/MM/dd','projection.date.interval' = '1','projection.date.interval.unit' = 'DAYS','storage.location.template' = 's3://<aws-waf-logs-xxx>/AWSLogs/<accountID>/WAFLogs/${region}/<waf-acl>/${date}/')

修改< >中的字符为自己的资源

测试查询

SELECT COUNT(httpRequest.country) as count, httpRequest.country 
FROM waf_logs
WHERE terminatingruletype='RATE_BASED' 
GROUP BY httpRequest.country
ORDER BY count
LIMIT 100;
SELECT COUNT(*) AS count,webaclid,action,httprequest.clientip,httprequest.uri
FROM waf_logs
WHERE terminatingruleid='<id>'
GROUP BY webaclid, action, httprequest.clientip, httprequest.uri
ORDER BY count DESC
LIMIT 100;

具体的sql 字段需要修改成自己的 可以先检索全表 查看字段 方便搜索
在这里插入图片描述

http://www.dinnco.com/news/82840.html

相关文章:

  • 太原做网站公司哪家好百度seo关键词点击软件
  • 上海大金空调网站建设百度搜索引擎广告投放
  • 一般网站开发好的框架都有哪些蜜雪冰城推广软文
  • 查企业有哪些平台咖啡seo是什么意思
  • 如何做网站的埋点广州网站快速排名优化
  • 模板网站难做seoseo高手培训
  • 安平网站建设注册城乡规划师含金量
  • 湖州企业网站开发公司哪些平台可以免费打广告
  • 唯品会是哪做的网站介绍网络营销的短文
  • 常用分类信息网站怎样把自己的产品放到网上销售
  • 国外租用服务器的平台新区快速seo排名
  • 怎么样网站速度快汕头seo外包机构
  • 自建网站如何赚钱百度广告搜索引擎
  • 怎样做省钱购物网站手机优化软件排行
  • 玉环专业做网站什么叫做优化
  • 网站建设展板广东百度seo
  • 自建网站平台有哪些功能产品网络营销方案
  • 河南网站优化外包服务seo优化服务
  • 携创网中国工商注册网关键词优化公司哪家强
  • 如何用vps做网站360优化大师最新版的功能
  • 国外做家居类的网站正规的计算机培训机构
  • wordpress网站根目录伟哥seo博客
  • 在网站文章锚文本怎么做手机免费建站app
  • 专业网站建设优势临沂seo
  • win wordpress运行环境保定seo推广公司
  • 汽车网站建设策划书口碑营销的作用
  • 甘肃城乡建设局网站长沙网动网络科技有限公司
  • 114百事通做网站是不是诈骗seo的研究对象
  • 专门做优惠券的网站微信营销平台哪个好
  • 吉林企业建站系统费用优化网站排名软件