简体   繁体   English

Apache访问日志Ping

[英]Apache Access Log Ping

An unrelated issue brought me to looking at my Apache 2 access log one morning and much to my chagrin I noticed a 5 second ping with my local host address. 一个不相关的问题使我一天早晨查看我的Apache 2访问日志,而令我非常恼火的是,我注意到使用本地主机地址进行了5秒的ping操作。 Awesome. 太棒了 Did I have something running locally to hit my Apache HTTP server or was some joker being a d-ck? 我是否有本地运行的文件可以访问我的Apache HTTP服务器,或者是某个小丑是d-ck?

127.0.0.1 - - [19/Jun/2014:12:13:58 -0400] "POST / HTTP/1.1" 200 77881
127.0.0.1 - - [19/Jun/2014:12:14:03 -0400] "POST / HTTP/1.1" 200 77881
127.0.0.1 - - [19/Jun/2014:12:14:08 -0400] "POST / HTTP/1.1" 200 77881
127.0.0.1 - - [19/Jun/2014:12:14:13 -0400] "POST / HTTP/1.1" 200 77880

Dropping my network connection stopped the access log entries so it looks like there is some bot pinging with no ident or user name. 断开我的网络连接会停止访问日志条目,因此看起来好像有一些bot ping没有身份或用户名。

Anyone have a tool to diagnose what's coming in? 任何人都有诊断即将发生的情况的工具吗?

Looks like Amazon Cloud is the culprit. 看起来是Amazon Cloud是元凶。 Not sure why they need to ping my Apache server, but will research this even further with them. 不知道为什么他们需要对我的Apache服务器执行ping操作,但是会与他们一起进行进一步研究。

Changed my Apache Log format to combined: 将我的Apache Log格式更改为合并:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
#LogFormat "%h %l %u %t \"%r\" %>s %b" common

#CustomLog "/private/var/log/apache2/access_log" common
CustomLog "/private/var/log/apache2/access_log" combined

To get better output: 为了获得更好的输出:

127.0.0.1 - - [19/Jun/2014:12:15:06 -0400] "POST / HTTP/1.1" 200 77881 "-" "Amazon%20Cloud%20Drive/20131119 CFNetwork/673.4 Darwin/13.2.0 (x86_64) (MacBookAir4%2C2)"
127.0.0.1 - - [19/Jun/2014:12:15:36 -0400] "POST / HTTP/1.1" 200 77881 "-" "Amazon%20Cloud%20Drive/20131119 CFNetwork/673.4 Darwin/13.2.0 (x86_64) (MacBookAir4%2C2)"

Recycled the Amazon Cloud Drive service and that looks like whatever process that was hanging around pinging the server dropped off. 回收了Amazon Cloud Drive服务,看起来像ping服务器的任何挂起过程都已中断。 Curious this did not happen on the countless times I rebooted the machine in the last few days... 奇怪的是,最近几天我无数次重启了机器,都没有发生这种情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM