I have IPTables rules set on a Linux device. I have a particular rule to drop the packets, and I wish to log the packets only if they're dropped by that specific rule, and not by the other rules.
Hence not written out to the syslog.
You could use
This tutorial titled: Change the IPTables log file, shows the exact methodology. In general you'll setup your iptables rule like so:
And then create a corresponding