bsamuels@beenthere-donethat.org.uk wrote:
I want Webalizer to take its input from STDIN by using something like cat various*.log|webalizer -c /path/to/webalizer.conf
I find that if I enable DNS lookups, which I want, Webalizer does all the lookups and then stops, displaying the number of addresses resolved, but does not produce any output.
If I disable the DNS lookups it produces all the expected output but, of course, no resolved addresses.
If I cat the log files to another single file, which I don't want to do, Webalizer will do DNS lookups and produce the expected output if this file is specified as the log file.
Does anyone know how I can get Webalizer to do both using STDIN?
IIRC, you need to use a dns cache file (webalizer's, not djbdns or bind). Webalizer refers to it, and looks up what it can't find. It's an explicit command-line parameter, I think [-D /dir/dnscachefilename]?
Cheers, Laurie.