注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Question: Your team has just been paged: Render's API is under a denial of service attack. You've pulled logs from the affected time window and need to analyze them quickly to understand what's happening and where the traffic is coming from.
Across all log files in this archive, determine the top 5 IP addresses by request count.
Follow up: How to rate limit
给三个log files, line format 如下
time="2025-07-05 08:56:35" level=info msg="[api-75fd6d7c7d-7qsr5/XwrPmPIYBX-017127] \"GET https://api.render.com/resolvedomain/woot.io HTTP/2.0\" from 45.76.9.107:46976 - 200 31B in 18.874268ms"
time="2025-07-05 08:56:39" level=info msg="listing & executing pending executions" component=ExecutionWatcher
time="2025-07-05 08:56:39" level=info msg="no pending executions" component=ExecutionWatcher
time="2025-07-05 08:56:40" level=info msg="graphql request" gqlName=database gqlOp=subscription reqID=api-75fd6d7c7d-7qsr5/XwrPmPIYBX-017128
time="2025-07-05 08:56:49" level=info msg="[api-75fd6d7c7d-7qsr5/XwrPmPIYBX-017129] \"GET https://api.render.com/ HTTP/1.1\" from 45.76.9.107:18626 - 200 4B in 31.913?s"
time="2025-07-05 08:56:50" level=info msg="[api-75fd6d7c7d-7qsr5/XwrPmPIYBX-017130] \"POST https://api.render.com/hooks/github HTTP/1.1\" from 10.3.38.59:64742 - 200 0B in 1.246757ms"
time="2025-07-05 08:56:56" level=info msg="[api-75fd6d7c7d-7qsr5/XwrPmPIYB0 0B in 2.74117ms"
time="2025-07-05 08:57:43" level=info msg="TODO: check suite TODO" action=requested conclusion="<nil>" source=HookHandler status=0xc023bf5830 webhookType=check_suite
time="2025-07-05 08:57:43" level=info msg="[api-75fd6d7c7d-7qsr5/XwrPmPIYBX-017145] \"POST https://api.render.com/hooks/github HTTP/1.1\" from 10.3.38.59:26086 - 200 0B in 924.758?s"
time="2025-07-05 08:57:57" level=info msg="[api-75fd6d7c7d-7qsr5/XwrPmPIYBX-017146] \"GET https://api.render.com/resolvedomain/tomliftoff.info HTTP/2.0\" from 45.76.9.107:46976 - 200 33B in 9.620547ms"
time="2025-07-05 08:58:02" level=info msg="[api-75fd6d7c7d-7qsr5/XwrPmPIYBX-017147] \"GET https://api.render.com/resolvedomain/hiramchirino.com HTTP/2.0\" from 45.76.9.107:46976 - 200 44B in 11.1197ms" |