Alejandro Fernandez wrote:
> Hi,
>
> I'm currently writing a big .sh file to take the stress off of me and to please
> the execs with pretty graphs of out 20 or so sites. The idea is to use pipes
> the way they were meant, to parse the logs as quickly as possible, and all in
> commands like the following:
>
> zcat `find /home1/logs/sift/*poopoo* -name '*transfer-log*gz' -mtime -45` |
> analog +ganalog/poopoo.cfg +C"FROM 990701:0000" +C"TO 990801:0000"
> +C"FILEINCLUDE /eandt/*" rmagic.pl poopoo.ini
> mv /software/apache/htdocs/poopoo/alpha/stats/output/* /software/apache/htdocs
> /poopoo/alpha/stats/eandt/july/
I'm not sure if the mailer messed this up, but I except that the above is 3 command
as follows (With an extra line where each new line is and lots of elipses to make
'em one-liners)
zcat `...` | analog +g....cfg +C"FROM..." +C"TO..." +C"FILEINCLUDE /eandt/*"
rmagic.pl poopoo.ini
mv /.../output/* /.../eandt/july/
> This zcats only gzipped log files going back 45 days ago, to produce report.dat
> of the month of august. All the lines are the same as this, in that the report
> magic stuff goes to the "output" directory and then gets copied wherever it
> needs to go.
(Wow! Now I understand why the command-line options and output to stdout are the
two most requested features for Report Magic.)
> It should also only give results for the eandt directory. But it's
> not understanding that "FILEINCLUDE /eandt/*" command, and it's giving me all
> the directories in the site.
If your analog/poopoo.cfg has a FILEEXECLUDE statement (or broader FILEINCLUDE
statements) they will take precidence over the command line options. This is
because the _first_ FILEINCLUDE/FILEEXCLDE statement Analog find determines whether
it procedes in inclusion or exclusion mode. The command-lines are processed last,
and therefore cannot create full exclusion. Try removing any FILEEXCLUDE statements
from the poopoo.cfg.
HTH,
--
Jeremy Wadsack
OutQuest Magazine
a Wadsack-Allen publication
------------------------------------------------------------------------
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]/
------------------------------------------------------------------------