Tool for converting Salesforce Commerce Cloud CloudFlare eCDN-WAF log to standard log formats like W3C
SFCC provides multiple ways to generate eCDN-WAF log files. One of the way is to use OCAPI to download these log files.
W3C log format is an official standard. These are plain text files.
W3C log format is one of the format which is accepted by SEO log file analyzer like Screaming Frog. Other log format supported by Screaming Frog are Apache Logs, HAProxy
python3 log_transformer.py -h
usage: log_transformer.py [-h] [-i INPUT] [-o OUTPUT] [-f FORMAT] [-s]
optional arguments:
-h, --help show this help message and exit
-i INPUT Existing Input directory from which SFCC logs file will be read
-o OUTPUT Existing Output directory to which transformed W3C logs will be
written
-f FORMAT Output log format. Eg: Apache, W3C
-s SFCC cache fingerprint will be removed from URL
- Download Screaming Frog Log analyzer from official site
- Once installed Click "New"
- Enter name of the project
- Click User-Agent tab & un-check "Filter User Agents"
- Once project is created, Click Import > Log File
- Select the log files