Logging IP address rather than hostname?

From: David Zanetti <dave@dont-contact.us>
Date: Wed, 13 Jan 1999 11:30:41 +1300 (NZDT)

Hash: SHA1

I have a small issue. We run a small cache for for a school, and we're
going to be using traffic-based charging on the system. While we've got
the billing system all working, Squid's logs only log the hostname we
connected to, not the IP address we conncted to.

By this, I mean the IP address squid estalibshed a connection with (if it
established any connection at all.)

accessLogSquid (in access_log.c) logs al->hier.host, but it looks like
there's no entry in the hier struct for the IP address. Has someone
already looked at a hack to provide the IP address in the heir struct, or
any pointers on where the easiest place is to capture it?

(Doing DNS lookups on the hostname when we do the accounting run was
considered, but it is a dial-up site, it's something we'd prefer to
avoid, particullarly as squid should have the IP address it's connecting
hidden away somewhere..)

Thanks in advance :)

| (__) | David Zanetti <dave@lynx.co.nz> | Support/Helpdesk: |
| ( oo | Systems Adminstrator, Lynx Internet Ltd. | (03) 379 0568 |
| /\_| | Moderator, nz.politics.announce | <support@lynx.co.nz> |
   WARNING: Messages sent as HTML will be dropped without being read!!

Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

Received on Tue Jan 12 1999 - 15:16:31 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:00 MST