cf-waf-analyzer is a simple rust based cli utility for analyzing Cloudflare Web Application Firewall (WAF) logs.
It helps parse and interpret security events to enhance your firewall configurations.
- Parse Cloudflare WAF logs
- Generate detailed reports
To use cf-waf-analyzer, run the following command:
wafstat analyze <path_to_log_file> -f <format>Replace <path_to_log_file> with the path to your Cloudflare WAF log file.
The -f flag is optional and allows you to specify the output format. The available formats are:
json: JSON formatmd: Markdown format (alternative:markdown)
wafstat analyze logs/waf_log.jsonTo run your Rust project with Docker, you can add the following instructions to your README.md:
- Build the Docker image:
docker build -t wafstat .- Run the Docker container:
docker run --rm -v $(pwd)/example-logs:/app/input wafstat analyze /app/input/firewall-events.json --format mdThis project is licensed under the MIT License. See the LICENSE file for details.