Mailing List Archive

Command Line processing question
My site's log files are multiple .gz files each day (about 30 of them). I
want to create a command line to perform the analog process. Herei s my
example:


/analog-6.0/analog -G +g/analog/configs/analog-daily-full.cfg logfile
/www_logs/2008/07/09/*.gz O /www_reports/daily/20080709.html


When I execute this, Analog complains that it cannot understand the log
format of the files.

When I embed the location of the LOGFILE and OUTFILE into the CFG file, it
works fine.

Is there a problem with my command line? Is the problem in my config file
itself?

Thanks
Terry
RE: Command Line processing question [ In reply to ]
Likely you have a "LOGFORMAT" command in your configuration file. That only applies to log files in the same config file (and the command line is considered a separate config file). If you change that the "DEFAULTLOGFORMAT" that should apply to all log file statements, including the command line.

--

Jeremy Wadsack
Seven Simple Machines
________________________________
From: analog-help-bounces@lists.meer.net [mailto:analog-help-bounces@lists.meer.net] On Behalf Of Terry Chambers
Sent: Monday, July 14, 2008 3:41 PM
To: analog-help@lists.meer.net
Subject: [analog-help] Command Line processing question

My site's log files are multiple .gz files each day (about 30 of them). I want to create a command line to perform the analog process. Herei s my example:


/analog-6.0/analog -G +g/analog/configs/analog-daily-full.cfg logfile /www_logs/2008/07/09/*.gz O /www_reports/daily/20080709.html


When I execute this, Analog complains that it cannot understand the log format of the files.

When I embed the location of the LOGFILE and OUTFILE into the CFG file, it works fine.

Is there a problem with my command line? Is the problem in my config file itself?

Thanks
Terry
Re: Command Line processing question [ In reply to ]
2008/7/14 Terry Chambers <terry.chambers@gmail.com>:
> My site's log files are multiple .gz files each day (about 30 of them). I
> want to create a command line to perform the analog process. Herei s my
> example:
>
>
> /analog-6.0/analog -G +g/analog/configs/analog-daily-full.cfg logfile
> /www_logs/2008/07/09/*.gz O /www_reports/daily/20080709.html
>
>
> When I execute this, Analog complains that it cannot understand the log
> format of the files.
>
> When I embed the location of the LOGFILE and OUTFILE into the CFG file, it
> works fine.
>
> Is there a problem with my command line? Is the problem in my config file
> itself?
>

You probably have a LOGFORMAT in the cfg file, which only applies to
LOGFILEs in that same cfg file. You need to put the LOGFORMAT on the
command line, before the logfiles, or else use DEFAULTLOGFORMAT in the
cfg file.

--
Stephen Turner
+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------
Re: Command Line processing question [ In reply to ]
Terry Chambers <terry.chambers@gmail.com> wrote:
>> My site's log files are multiple .gz files each day (about 30 of
>> them). I want to create a command line to perform the analog
>> process. Herei s my example:
>>
>>
>> /analog-6.0/analog -G +g/analog/configs/analog-daily-full.cfg logfile
>> /www_logs/2008/07/09/*.gz O /www_reports/daily/20080709.html
>>
>>
>> When I execute this, Analog complains that it cannot understand the
>> log format of the files.
>>
>> When I embed the location of the LOGFILE and OUTFILE into the CFG
>> file, it works fine.
>>
>> Is there a problem with my command line? Is the problem in my
>> config file itself?

"LOGFILE" is sort of assumed on the command line. For example

analog 20080714.log

will analyze 20080714.log. To specify the outfile, the command line argument is +O, and, just like the +g for yoru additional .cfg file, there shouldn't be a space between the +O and the outfile.

/analog-6.0/analog -G +g/analog/configs/analog-daily-full.cfg /www_logs/2008/07/09/*.gz +O/www_reports/daily/20080709.html

http://analog.cx/docs/syntax.html
http://analog.cx/docs/indx.html#clargs

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
+------------------------------------------------------------------------
Re: Command Line processing question [ In reply to ]
analog-help-request@lists.meer.net wrote:
> >Send analog-help mailing list submissions to
> analog-help@lists.meer.net
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.meer.net/mailman/listinfo/analog-help
>or, via email, send a message with subject or body 'help' to
> analog-help-request@lists.meer.net
>
>You can reach the person managing the list at
> analog-help-owner@lists.meer.net
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of analog-help digest..."
>
>
>Today's Topics:
>
> 1. Command Line processing question (Terry Chambers)
> 2. RE: Command Line processing question (Jeremy Wadsack)
> 3. Re: Command Line processing question (Stephen Turner)
> 4. Re: Command Line processing question (Aengus)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Mon, 14 Jul 2008 18:40:42 -0400
>From: "Terry Chambers" <terry.chambers@gmail.com>
>Subject: [analog-help] Command Line processing question
>To: analog-help@lists.meer.net
>Message-ID:
> <87d1d5cc0807141540q482458a4j9285a560d4b75693@mail.gmail.com>
>Content-Type: text/plain; charset="iso-8859-1"
>
>My site's log files are multiple .gz files each day (about 30 of them). I
>want to create a command line to perform the analog process. Herei s my
>example:
>
>
>/analog-6.0/analog -G +g/analog/configs/analog-daily-full.cfg logfile
>/www_logs/2008/07/09/*.gz O /www_reports/daily/20080709.html
>
>
>When I execute this, Analog complains that it cannot understand the log
>format of the files.
>
>When I embed the location of the LOGFILE and OUTFILE into the CFG file, it
>works fine.
>
>Is there a problem with my command line? Is the problem in my config file
>itself?
>
>Thanks
>Terry
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
http://lists.meer.net/pipermail/analog-help/attachments/20080714/82f2ad02/attach
ment-0001.html
>
>------------------------------
>
>Message: 2
>Date: Mon, 14 Jul 2008 15:48:22 -0700
>From: Jeremy Wadsack <jeremy@7simplemachines.com>
>Subject: RE: [analog-help] Command Line processing question
>To: Support for analog web log analyzer <analog-help@lists.meer.net>
>Message-ID:
> <3A3310C165D9CD4CA6AAC4A3071834981526C34B@hobbes.ssm.local>
>Content-Type: text/plain; charset="us-ascii"
>
>Likely you have a "LOGFORMAT" command in your configuration file. That only
applies to log files in the same config file (and the command line is
considered a separate config file). If you change that the "DEFAULTLOGFORMAT"
that should apply to all log file statements, including the command line.
>
>--
>
>Jeremy Wadsack
>Seven Simple Machines
>________________________________
>From: analog-help-bounces@lists.meer.net
[mailto:analog-help-bounces@lists.meer.net] On Behalf Of Terry Chambers
>Sent: Monday, July 14, 2008 3:41 PM
>To: analog-help@lists.meer.net
>Subject: [analog-help] Command Line processing question
>
>My site's log files are multiple .gz files each day (about 30 of them). I want
to create a command line to perform the analog process. Herei s my example:
>
>
>/analog-6.0/analog -G +g/analog/configs/analog-daily-full.cfg logfile
/www_logs/2008/07/09/*.gz O /www_reports/daily/20080709.html
>
>
>When I execute this, Analog complains that it cannot understand the log format
of the files.
>
>When I embed the location of the LOGFILE and OUTFILE into the CFG file, it works
fine.
>
>Is there a problem with my command line? Is the problem in my config file
itself?
>
>Thanks
>Terry
>
>
>
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
http://lists.meer.net/pipermail/analog-help/attachments/20080714/180d0692/attach
ment-0001.html
>
>------------------------------
>
>Message: 3
>Date: Mon, 14 Jul 2008 23:51:09 +0100
>From: "Stephen Turner" <analog-author@lists.meer.net>
>Subject: Re: [analog-help] Command Line processing question
>To: "Support for analog web log analyzer" <analog-help@lists.meer.net>
>Message-ID:
> <40e7475b0807141551w748a876ar7cd1ae0b800f57a3@mail.gmail.com>
>Content-Type: text/plain; charset=ISO-8859-1
>
>2008/7/14 Terry Chambers <terry.chambers@gmail.com>:
>> My site's log files are multiple .gz files each day (about 30 of them). I
>> want to create a command line to perform the analog process. Herei s my
>> example:
>>
>>
>> /analog-6.0/analog -G +g/analog/configs/analog-daily-full.cfg logfile
>> /www_logs/2008/07/09/*.gz O /www_reports/daily/20080709.html
>>
>>
>> When I execute this, Analog complains that it cannot understand the log
>> format of the files.
>>
>> When I embed the location of the LOGFILE and OUTFILE into the CFG file, it
>> works fine.
>>
>> Is there a problem with my command line? Is the problem in my config file
>> itself?
>>
>
>You probably have a LOGFORMAT in the cfg file, which only applies to
>LOGFILEs in that same cfg file. You need to put the LOGFORMAT on the
>command line, before the logfiles, or else use DEFAULTLOGFORMAT in the
>cfg file.
>
>--
>Stephen Turner
>
>
>------------------------------
>
>Message: 4
>Date: Mon, 14 Jul 2008 19:00:47 -0400
>From: "Aengus" <analog07@eircom.net>
>Subject: Re: [analog-help] Command Line processing question
>To: "Support for analog web log analyzer" <analog-help@lists.meer.net>
>Message-ID: <17567CA5138447FE864D551A8EDB8BC6@WC515ALawlo>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Terry Chambers <terry.chambers@gmail.com> wrote:
>>> My site's log files are multiple .gz files each day (about 30 of
>>> them). I want to create a command line to perform the analog
>>> process. Herei s my example:
>>>
>>>
>>> /analog-6.0/analog -G +g/analog/configs/analog-daily-full.cfg logfile
>>> /www_logs/2008/07/09/*.gz O /www_reports/daily/20080709.html
>>>
>>>
>>> When I execute this, Analog complains that it cannot understand the
>>> log format of the files.
>>>
>>> When I embed the location of the LOGFILE and OUTFILE into the CFG
>>> file, it works fine.
>>>
>>> Is there a problem with my command line? Is the problem in my
>>> config file itself?
>
>"LOGFILE" is sort of assumed on the command line. For example
>
> analog 20080714.log
>
>will analyze 20080714.log. To specify the outfile, the command line argument is
+O, and, just like the +g for yoru additional .cfg file, there shouldn't be a
space between the +O and the outfile.
>
>/analog-6.0/analog -G +g/analog/configs/analog-daily-full.cfg
/www_logs/2008/07/09/*.gz +O/www_reports/daily/20080709.html
>
>http://analog.cx/docs/syntax.html
>http://analog.cx/docs/indx.html#clargs
>
>Aengus
>
>
>
>------------------------------
>
>+------------------------------------------------------------------------
>| TO UNSUBSCRIBE from this list:
>| http://lists.meer.net/mailman/listinfo/analog-help
>|
>| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
>| List archives: http://www.analog.cx/docs/mailing.html#listarchives
>+------------------------------------------------------------------------
>
>
>End of analog-help Digest, Vol 47, Issue 10
>*******************************************


You should provide configuration file with full path or relative to the location from where you are executing this command.
the fragment +g/analog/configs/analog-daily-full.cfg should be like +ganalog/configs/analog-daily-full.cfg ,if you are executing this command whose sub-directory is analog/configs/ . The '/' after +g is not ok. It is good if you can always give full-path from root like /home/analog.....
It is always advisable to follow good conventions while dealing from command line. So try following edited command.

analog -G +ganalog/configs/analog-daily-full.cfg +C"LOGFILE /www_logs/2008/07/09/*.gz" +C"OUTFILE /www_reports/daily/20080709.html"

Remember try to give full path for configuration file, log file and output file as well.


Warm Regards
-ravikumar kakde.