Can ShopSite Reports read webserver traffic logs in gzip (or other compression method) format?
Product: Manager and Pro
Version: ALL
OS: ALL
My webserver access logs are gzip'd (or compressed or archived with some other compression method) on the server to conserve diskspace. Can ShopSite read these .gz files to get my traffic Reports?
Solution ID: S05433
Yes, but it requires manually modifying a configuration file in the ShopSite data directory, and your gzip'd files must have the .gz file extension. Here is how to configure it:
In statconfig.aa (found in the [ShopSite datadir]/stats/ directory) you need a line that looks like this (for example)
server log filter for .gz: gunzip
or
server log filter for .gz: gzip -d
If you have log that were in a certain format that could be read be the imaginary external filter 'foo' you would do like this:
server log filter for .foo: foo -conversion_to_plain_text_flag
You then need to make sure that your server log path and file name are correct, and that the file extension of the filename is set to match the filter extension you set up.
ShopSite will then use the filter command you set up to un-compress the file to a temporary file, parse it as it would a non-compressed file, then remove that temporary file.
Related Articles
No related articles were found.
Attachments
No attachments were found.
Visitor Comments