Skip to contentSkip to conversation

how to do a no duplicate record log.

DISCUSSION huang mingyou 2 participants 2 messages Mar 6, 2006

lore
Share & tools
lore
#0 lore raw

hello,list.
I need record all ip that input,and log it.but if log the duplicate
message will occupy more disk space. so I want only log one record for one ip, or little records. iptables can do this ? my English is ugly,I'm so sorry!
Please help me.

---------
HMY

#1 lore raw

[email protected] scribbled on :

Quoted 5 lines

hello,list.
I need record all ip that input,and log it.but if log the duplicate
message will occupy more disk space. so I want only log one record for one ip, or little records. iptables can do this ? my English is
ugly,I'm so sorry! Please help me.

Do I understand correctly that you want each unique IP address logged only once in the entire log ? I don't know of any mechanism that can do this out-of-the-box.
Maybe if you use ulogd, log to a database and then run a sql job to it at regular intervals to remove duplicate source IP's you can achieve this. But that would be ugly. ;-)

Gr,
Rob