Skip to main content

AWS WAF log analysis report generator

Project description

About

Accomapnist - It's an accompanist on WAF log analysis.

You can generate WAF log analysis report with only 2 CLI commands.

Prerequisition

  • WAF

    • AWS WAFv2
      • Logging: CloudWatch Logs
      • Action: BLOCK or COUNT
    • Third Party WAF
      • Logging: CloudWatch Logs
      • Action: BLOCK or COUNT
  • Client Environment

    • OS: macOS
    • IAM Role/User: including permissions to execute
      • (1) start_query of Logs Insights
      • (2) get_query_result of Logs Insights

Install

pip install accompanist

Usage

  1. Create configuration file (JSON format) including 3 elements below

(e.g.) config.json

{
  "log_group": "aws-waf-logs-foo-bar",
  "target_uri": [
    "/foo",
    "/bar"
  ],
  "comment": [
    "- note 1",
    "- note 2",
    "-",
    "-",
    "-"
  ]
}
  1. Get query result
accompanist listen --action BLOCK --days 3
  1. Generate report (PDF format)
accompanist play

Uninstall

pip uninstall accompanist

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

accompanist-1.0.3-py3-none-any.whl (36.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page