How to Integrate Alibaba Cloud WAF Log with Splunk

Prerequisites

Procedure Overview

Step 1: Enable Web Application Firewall (WAF) Logging

Step 2: Configure Splunk HTTP Event Collector (HEC)

Step 3: Setup Python Environment in ECS

apt-get update
apt-get install -y python3-pip python3-dev
cd /usr/local/bin
ln -s /usr/bin/python3 python
pip3 install --upgrade pip
pip install aliyun-log-python-sdk

Step 4: Configure Python to Send Logs to Splunk

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store