Click to See Complete Forum and Search --> : logresolve & rotatelogs with W2K


TDassel
08-06-2002, 11:50 AM
Hello,

I want to log the DNS names of the visitors of my intranetsite and rotate the logs every 24 hours ( I have like to 3 MB access log for one day ).
The Apache docs only list the Unix syntax. Is it possible to first have the lookups done and then rotate the logs ?
Something like:
Custom Logs "|logresolve | rotatelogs ...\access.log 86400" ??

Any help, script etc would be appreciated, because I couldīt get anything to work.

Thanks

KevinReichard
08-07-2002, 12:41 PM
Analog (http://www.analog.cx/) will analyse the results, but I am not sure if it will rotate the logs.

--Kevin

TDassel
08-07-2002, 01:05 PM
Hello Kevin,
almost all log analyzers can do dns lookups, but as I have an DHCP based intranet with several VPNS and dial-ups, i need to get the real name of the machine as quick as possible. Looking up the address hours later would give me a lot of unresolved IPs or wrong results ( already tried that ).
What I need is a possibility to look up the dns name in nearly the same second the ip address gets written into the log file without affecting the Apache server by setting its config HostnameLookups on, which would slow it down a lot.

Any ideas ?

Thomas

DrWolffenstein
08-07-2002, 03:07 PM
use a php script. You can download one at www.hotscripts.com. and click to the section PHP. I use one myself.

-- Dr. Wolffenstein.

KevinReichard
08-07-2002, 04:39 PM
A better site for PHP scripts and articles is PHPBuilder:

http://www.phpbuilder.com

The site also features a ton of tutorials and discussions that address this very issue.

I tried looking for such a script on hotscripts and there wasn't one.

--Kevin