Professional Documents
Culture Documents
O.S.: CentOS 8
Dependencies
Download script
Script configuration
[SETTINGS]
APIID=1234
APIKEY=XXXX-XXX-4b15-b323-af3fb1245af9
SAVE_LOCALLY=YES
PROCESS_DIR= /tmp/processed/
BASEURL=https://logs1.incapsula.com/8502_1824662/
USEPROXY=NO
PROXYSERVER=
SYSLOG_ENABLE=NO
SYSLOG_ADDRESS=
SYSLOG_PORT=
SYSLOG_PROTO=TCP
USE_CUSTOM_CA_FILE=YES
CUSTOM_CA_FILE=/home/centos/incapsula-logs-downloader-master/cert/mycertfile.pem
First create a shell script (startIncapsula.sh ), under /usr/bin, and contain one line below
python3 /home/centos/incapsula-logs-downloader-master/script/LogsDownloader.py -c
/home/centos/incapsula-logs-downloader-master/config
Then make a unit file called incapsula.service under /lib/systemd/system
[Unit]
Description=Incapsula WAF log download systemd service.
[Service]
Type=simple
ExecStart=/bin/bash /usr/bin/startIncapsula.sh
[Install]
WantedBy=multi-user.target
Copy this service file to /etc/system/system and make sure the mod is 644.
PROCESS_DIR The directory where Incapsula automatically saves the logs after
extracting them.
PROXYSERVER If you choose to use a proxy server, when you type the proxy URL,
use the <https://1.1.1.1:8080> format.
SYSLOG_ENABLE Type YES.