[analog-help] Shell script question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm having a weird problem with a shell script and quoting... It's a simple #!/bin/sh -e script, I have a loop in there that converts arguments to a string of LOGFILE commands. At the end this is the command: /usr/local/bin/analog -O\${report_directory}/analog.dat\ +C\LOGFORMAT COMBINED\ +C\LOGFORMAT COMMON\ +C\HOSTNAME ${domain}\${log_dirs} When running it, this is whst set -x gives me: + /usr/local/bin/analog - -O/var/www/stats/www.test.com/reports/123456/analog.dat +CLOGFORMAT COMBINED +CLOGFORMAT COMMON +CHOSTNAME www.test.com +CLOGFILE /var/stats/www.test.com/2003/10/08/*.gz +CLOGFILE /var/stats/www.test.com/2003/10/15/*.gz /usr/local/bin/analog: analog version 6.0/Unix /usr/local/bin/analog: Warning C: Unknown configuration command: ignoring it: ~ LOGFORMAT ~ (For help on all errors and warnings, see docs/errors.html) /usr/local/bin/analog: Warning C: Unknown configuration command: ignoring it: ~ LOGFORMAT /usr/local/bin/analog: Warning C: Unknown configuration command: ignoring it: ~ HOSTNAME /usr/local/bin/analog: Warning C: Unknown configuration command: ignoring it: ~ LOGFILE and so on... If I try without escaping the characters in the shell script, I get: + /usr/local/bin/analog - -O/var/www/stats/www.test.com/reports/123456/analog.dat +CLOGFORMAT COMBINED +CLOGFORMAT COMMON +CHOSTNAME www.test.com +CLOGFILE /var/stats/www.test.com/2003/10/08/*.gz +CLOGFILE /var/stats/www.test.com/2003/10/15/*.gz /usr/local/bin/analog: analog version 6.0/Unix /usr/local/bin/analog: Warning C: Unknown configuration command: ignoring it: ~ LOGFILE ~ (For help on all errors and warnings, see docs/errors.html) /usr/local/bin/analog: Warning C: Unknown configuration command: ignoring it: ~ LOGFILE ... If I remove the from the LOGFILE loop I get: + /usr/local/bin/analog - -O/var/www/stats/www.test.com/reports/123456/analog.dat +CLOGFORMAT COMBINED +CLOGFORMAT COMMON +CHOSTNAME www.test.com +CLOGFILE /var/stats/www.test.com/2003/10/08/httpd-access.log.20031008161120.gz +CLOGFILE /var/stats/www.test.com/2003/10/15/httpd-access.log.20031015123300.gz /usr/local/bin/analog: analog version 6.0/Unix /usr/local/bin/analog: Warning C: Not enough arguments for configuration ~ command: ignoring it: ~ LOGFILE ... -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCMd9KV/+PyAj2L+IRAhEmAJ9N/xbkspHwDUkGy5kRpBaEoAG4XwCfb8l+ 5nEwVhOTLORwbrkfyrfBtk8= =iyOj -END PGP SIGNATURE- + | 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 +
[analog-help] problems changing referring site report criteris (floor?)
Hello, I'm trying to change my Referring Site Report to display all referrers for the last month/30 days and I can't figure out how to do it. I've tried specifying REFFLOOR -00-01-00d, 1s, and a few other things in the config file and it says: running analog.../usr/local/bin/analog: analog version 5.24/Unix /usr/local/bin/analog: Warning D: In Referrer Report, FLOOR (last date) doesn't match ARGSFLOOR (requests) (For help on all errors and warnings, see docs/errors.html) /usr/local/bin/analog: Warning D: In Referrer Report, FLOOR (last date) isn't included in COLS ^C/usr/local/bin/analog: Received interrupt signal: exiting If I add an identical REFARGSFLOOR command, I get: running analog.../usr/local/bin/analog: analog version 5.24/Unix /usr/local/bin/analog: Warning D: In Referrer Report, FLOOR (last date) isn't included in COLS (For help on all errors and warnings, see docs/errors.html) /usr/local/bin/analog: Warning D: In Referrer Report, ARGSFLOOR (last date) isn't included in COLS To me this looks like the date data isn't included so it can't use that criteria, but the config/docs are pretty confusing. How can I get it to show me the last month's referrals rather than the top 30? Thanks, Josh + | 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 +
Re: [analog-help] problems changing referring site report criteris (floor?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for the responses Aengus and Stephen. I knew they were just warnings, and the program was still running (I interrupted it), but the output still had the 30 referrer limit so I figured it wasn't doing what I thought it would. Stephen Turner wrote: | No, it doesn't mean that. It will do the FLOOR correctly. It's just warning | you that the date isn't being listed, so it won't be obvious from reading | the report what the floor is. Ohh, I see. | the data for the referrer will be its usage for all time. If you want to see | how many times each referrer occurred during the last month, you should | restrict the whole report using FROM. It sounds like I _am_ using the wrong commands for what I want. I will look at the FROM/TO commands again and try those. Thanks again to both of you, Josh -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBokneV/+PyAj2L+IRAsXzAJ9SnGrbuRL2gvG909hQ/JFLsMf3fwCcCGub whq9H9QWJWGB1/oXNw1UjRA= =8XFI -END PGP SIGNATURE- + | 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 +