On Thursday, September 13, 2007 6:36 AM [EDT],
Shedi Shedi <[EMAIL PROTECTED]> wrote:
Hi,
I'm trying to call analog from command line as follows:
analog logfile httpd.07.09.12.log +g"knox.cfg" -G
error file shows the following message:
analog: Warning D: LOGFORMAT in configuration file knox.cfg with no
subsequent LOGFILE
Because you can tell Analog to read multiple logfiles, each with a different
format, you must specify the LOGFORMAT before you specify the LOGFILE that
it applies to. You've specified a LOGFORMAT, but haven't specified a LOGFILE
after it in the configuration fle.
analog: Warning F: Failed to open logfile logfile: ignoring it
You've told Analog toopen a logfile called logfile, which it couldn't find.
(You don't need to use the LOGFILE command on the command line. If you want
to use it on the command line, you have to tell Ananlog that you're using
it, as you do any other command. by using the +C marker. Analog assumes that
any argument specified on the command line, unless it's marked as a
parameter, refers to a logfile).
analog: Warning F: Can't auto-detect format of logfile
httpd.07.09.12.log: ignoring it
You've told Analog to open a logfile with a format that it didn't recognize.
The simplest solution is to specify the LOGFILE in your .cfg file. If you
need to specify the logfile on the command line, then you should specify the
format as DEFAULTLOGFORMAT in the .cfg file, so that Analog will know to
apply it to any logfiles on the command line.
Aengus
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------