MySQL syslog tűzfal trigger


delimiter //
create trigger tr_syslog
before insert on logs
for each row
begin
IF (NEW.host = '10.1.12.218') THEN
INSERT INTO cisco_wlc (host,facility,priority,level,tag,datetime,program,msg,seq) VALUES (NEW.host,NEW.facility,NEW.priority,NEW.level,NEW.tag,NEW.datetime,NEW.program,NEW.msg,NEW.seq);
DELETE FROM logs WHERE seq=NEW.seq LIMIT 1;
END if; Olvass tovább...
2010.10.13. 08:49 - legyes
1 2