I was almost sure that any command-line options or alternate configuration file (i.e. 
`analog +g/tmp/myconfig.txt`) would override the global (non-mandatory) "analog.cfg".  
I based that on the fact that the global analog.cfg contains
  HOSTNAME "[my organisation]"
but if I put
  HOSTNAME "David's Stuff"
in /tmp/myconfig.txt, then run `analog +g/tmp/myconfig.txt`, the final output uses 
"David's Stuff" as its hostname.

But today I was trying to get the UNCOMPRESS feature to work, by putting
  UNCOMPRESS *.gz "/usr/gnubin/gunzip -c"
in /tmp/myconfig.txt, then running `analog +g/tmp/myconfig.txt` as usual.  After a 
long time of trying to figure out why that wasn't working, I finally added DEBUG FS to 
my config file, and got the following output...

...
F: Opening /http/suitespot/https-docs/logs/access.17Jul-03AM.gz as logfile
F:   Using gzip -cd to uncompress it
sh: gzip:  not found.
F: Closing logfile /http/suitespot/https-docs/logs/access.17Jul-03AM.gz
...
/u/u816756/bin/analog: Warning F: Problems uncompressing logfile


I noticed then that the global analog.cfg was telling analog to run `gzip -cd` - easy 
enough to change.  But again, I thought that /tmp/myconfig.txt would override the 
global analog.cfg.  So I ran `analog -settings +g/tmp/analog.31232`

...
Compile-time variables:
  Default configuration file: /u/u816756/analog/analog.cfg
  Mandatory configuration file: none
...
Uncompressing files as follows:
  *.gz by gzip -cd
  *.Z by gzip -cd
  *.gz by /usr/gnubin/gunzip -c
...

and yet it was 'gzip -cd' that took precedence when I tried to analyze gzip'ed 
logfiles.

Again, it was easy enough for me to change analog.cfg , but is this the way analog is 
*supposed* to behave?

Thanks.


--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to