On Thu, 2 May 2002, Brantley Hobbs wrote:
> I'm a little confused as to how the command line arguments are used
> with the mergelog utility that comes with pen.
>
> The man page states that the files to merge are specified in the
> 'server:logfile' format. I don't understand this format. Is the
> 'server:' part the name of the server that the logfile came from? Is
> this used to connect to the server and fetch the file automatically?
No, you have to transfer them manually.
> I'm struggling a little with the notation. I guess the main question
> would be: Is everything after the colon the name of the logfile that
> belongs to the server specified before the colon? For example:
> <server_this_log_came_from>:<path_to_the_logfile_for_that_server>. Can
> someone clarify this?
The logfile from pen looks something like this:
8<---
200.238.128.3 1010753621 10.0.18.8 GET /pw/pw+plugin.gif HTTP/1.0
64.152.75.62 1010753642 10.0.18.6 GET /latest-src/pw/menu.scm HTTP/1.0
193.220.59.40 1010753650 10.0.18.8 GET /siag/fileformats.html HTTP/1.1
200.238.128.3 1010753660 10.0.18.8 GET /pw/index.html HTTP/1.0
8<---
The third field from the left is the server that was used. So let's say
the log file from the 10.0.18.6 server is called access_log-siag and the
one from 10.0.18.8 is called access_log-alphabob. Then the command line to
mergelogs would be something like
mergelogs -t 3600 10.0.18.6:access_log-siag 10.0.18.8:access_log-alphabob
The 3600 is because siag and alphabob are in Sweden.
> Also, how does one specify the time for the -t option if you are behind
> UTC? I tried to use '-t -16000', but I was unable to get any logs to
> merge. Although that could be because of the first question that I
> asked.
What you tried is supposed to work. ;-)
You can use the -d flag to get some hints as to what mergelogs is trying
to do.
Ulric
This archive was generated by hypermail 2.1.2 : Fri May 03 2002 - 09:49:13 CEST