> What do you need to do with the information? If you're not using one of
> the defined values like user or vhost, then you can 'hijack' that in a
> custom logformat (using %u or %v respectively) and use the appropriate
> reports to see a list of values.
Here are some lines from my access log to clarify what I want to do (I
shorted the ip and the date to keep the entries on one line)
127. - - [05] "GET /kion.js HTTP/1.0" 200 5257 mod_gzip: DECLINED:EXCLUDED
In:0 Out:0:0pct.
127. - - [05] "GET /space.gif HTTP/1.0" 200 49 mod_gzip: DECLINED:EXCLUDED
In:0 Out:0:0pct.
127. - - [05] "GET /index.html HTTP/1.0" 200 907 mod_gzip: OK In:4902
Out:907:82pct.
127. - - [05] "GET /gfx/arr1.gif HTTP/1.0" 200 60 mod_gzip:
DECLINED:EXCLUDED In:0 Out:0:0pct.
This is a combined log format with some additional information. What I'd
like to do is get the message (like DECLINED:EXCLUDED, OK) and the values
after In: and Out:. From those I want to create a report with adds up all In
and Out values and shows these total values, their ratio and the number of
messages.
Something like:
Total compressed requests: 1
Total requests: 4
Total bytes uncompressed: 10268
Total bytes compressed: 6273
Ratio: 59%
Status messages:
OK: 1
DECLINED:EXCLUDED: 3
One difficulty in creating this report is that mod_gzip only fills the In
and Out values for requests that were compressed.
Can I do this with just using %u and %v (I'd certainly need one more field)?
Or can I get analog to read the whole statement after mod_gzip and parse it
with a special function?
Jens
+------------------------------------------------------------------------
| 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/[email protected]/
| http://lists.isite.net/listgate/analog-help/archives/
+------------------------------------------------------------------------