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.
Log the dropped packets by IPTables only if its DROPPED by a specific rule
logs;iptables