Mark Farmer ([EMAIL PROTECTED]; Friday, October 25, 2002 11:44 AM):

> Hi, my name's Mark and I'm new to the list.

> I'm trying to specify a date range for a log file I want analzyed. As far as 
> I can tell, this is done with the FROM and TO command-line instructions.

FROM and TO are configuration file commands. Enter them into your
analog.cfg file. Use -F and -T from the command line.


> When I double-click on analog.exe, a command window comes up, but won't 
> accept commands and then closes itself. The help file told me this is 
> normal, but if so, how do I enter a FROM and TO command in it?

If you want to enter command-line options (rather than making changes
to the configuration file) you need to run analog from a DOS window
(Command Prompt).


> On another question, the log file I'm operating on is huge: 350 Megs (the 
> client hasn't it touched it in years, so it's bloated to its current size). 
> I'm assuming analog will choke on something this size,

Not at all. Analog can handle GB log files. Of course, this does
depend on the power of the system you are using. If you limit with
FROM and TO, Analog will just dump all the lines it doesn't want, so
it should work just fine.


> so what is the best 
> way to chop it into bite-sized pieces (I'm assuming this is in fact 
> possible)?

Use a log rotation program like logrotate or similar to archive and
compress logs on a regular basis (e.g. monthly) and start new ones.
See http://www.rt.com/man/logrotate.8.html for documentation. This
command ships on most linux and many Unix systems now.

For an existing file, you can use Perl, sed or other text manipulation
tool to parse it into monthly chunks or whatever, if you are
comfortable with them.

Otherwise, you could open it in a text editor and chop it up yourself.
You will need to find an editor that can read 350MB files and will not
wrap long lines. Notepad and Wordpad will not do.

-- 

Jeremy Wadsack
Wadsack-Allen Digital Group

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/analog-help@;lists.isite.net/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to