public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] {OT} Strange apache2 access_log entries
Date: Wed, 26 Sep 2007 19:25:23 -0700	[thread overview]
Message-ID: <49bf44f10709261925k1eb61a00ye420df0f1c6f72d5@mail.gmail.com> (raw)
In-Reply-To: <20070926182419.2c8a13cb@pascal.spore.ath.cx>

> > Does anyone else get entries like this in their apache2 access_log:
> >
> > 127.0.0.1 - - [26/Sep/2007:03:10:08 -0700] "GET /" 400 470
> >
> > I get a whole slew of them every day.  They always show up in batches
> > and each entry in a batch is logged at almost the same second.
> That make sense, since 400 means 'bad request' the culprit probably
> fails a preset number of times and then gives up.  Perhaps 127.0.0.1 is
> the setting for something in the absence of a sane configuration - in
> other words, it might be tricky to track this one down.  You'll have to
> let us know what gurific sleuthing techniques you employ to track down
> the bad guys.

What do you mean by "bad guys"?

I made a mistake in my initial post.  The 127.0.0.1 entries always
show up in ssl_access_log, not access_log.

Also, I noticed that a huge block of them always appears at the very
beginning of each day's ssl_access_log at exactly 3:10AM.

> You should perhaps use combined logging so you get more information,
> like the user agent and such.  right now you're using 'common' logging
> which has the additional disadvantage that it doesn't give you
> particularly useful information if you decide to use a statistical
> analyzer like awstats on your archive of logs from the past umpteen
> years.  The user agent might be useful for debugging purposes.

I switched ssl_access_log temporarily to the combined format, and it
was definitely working, but the 127.0.0.1 error looked exactly as it
did in common format with no extra information.

> You might also consider running tcpdump for a few hours or so, or
> something, and have it watch for that port and interface and run ps or
> something if you get output from it.   Or use iptables logging for the
> job, if you'd rather do that.

Any specific commands or even just certain parameters I should look into?

- Grant
-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2007-09-27  2:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-26 20:30 [gentoo-user] {OT} Strange apache2 access_log entries Grant
2007-09-26 22:48 ` Albert Hopkins
2007-09-27  1:51   ` Grant
2007-09-27  2:44     ` Albert Hopkins
2007-09-27  4:44       ` Grant
2007-09-27  5:28         ` Szénási István
2007-09-27 14:10           ` Grant
2007-09-27 14:30             ` Szénási István
2007-09-27  3:14     ` Daniel Iliev
2007-09-27  3:28       ` [gentoo-user] {OT} [typo] " Daniel Iliev
2007-09-27  7:22     ` [gentoo-user] {OT} " Neil Bothwick
2007-09-27 14:22       ` Grant
     [not found] ` <20070926182419.2c8a13cb@pascal.spore.ath.cx>
2007-09-27  2:25   ` Grant [this message]
2007-09-27  6:39 ` Naga
2007-09-27 14:39   ` Grant
2007-09-28 14:17 ` [gentoo-user] " Grant
2007-09-29 17:27 ` Grant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49bf44f10709261925k1eb61a00ye420df0f1c6f72d5@mail.gmail.com \
    --to=emailgrant@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox