CentOS 7 firewall logs - Where to find Firewalld log from command-line?

I know firewalld GUI option but looking for a command-line way. I want to see firewalld firewall log on my CentOS 7 server hosted in Google cloud? Where and how can I find centos firewall log file?

CentoS 7 Log file

Try /var/log/firewalld file and following commands to see logs as root user:

tail -f /var/log/firewalld
grep something /var/log/firewalld
journalctl -u firewalld.service
# Search firewall stuff using the grep 
dmesg | grep REJECT
dmesg | grep FINAL_REJECT | grep ip_address
# See live view of firewall REJECT entries 
journalctl -f

Find and list the actual LogDenie settings

sudo firewall-cmd --get-log-denied

Change the actual LogDenie settings

sudo firewall-cmd --set-log-denied=all

Verify it:

sudo firewall-cmd --get-log-denied

See my page for more info:


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki