I have used iptables to save information about connections by modifying the
/etc/syslog.conf file to save information in
So, every X hours, I need to extract information from the log file. But the problem is the file will be bigger and the search will be slower. So I used:
sed -i '/string/d' iptables.log
In order to delete what I don't need anymore. But when I use this command, iptables stops saving data in the
So, what's wrong? How can I solve this problem?