I had the same problem and I want to contribute with this information:
My LogZilla stopped writing into Database:
-03-01 00:00:00 | 1 | 2010-06-23 21:40:03 | 2010-06-23 21:40:03 | |
| 101 | logzilla.lantest.net.br | 3 | 6 | 1430955586 | Leaving mDNS multicast group on interface eth0.IPv4 with address 10.161.0.61. | 3751981041 | 2010-03-01 00:00:00 | 1 | 2010-06-23 21:40:03 | 2010-06-23 21:40:03 | |
| 102 | logzilla.lantest.net.br | 10 | 6 | 3917628041 | Received signal 15; terminating. | 3751981041 | 2010-03-01 00:00:00 | 1 | 2010-06-23 21:40:17 | 2010-06-23 21:40:17 | |
I did the procedure:
# mysql -u root -p
mysql> use syslog;
mysql> show create table logs \G
*************************** 1. row ***************************
Table: logs
Create Table: CREATE TABLE `logs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`host` varchar(128) NOT NULL,
`facility` enum('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','100','101','102','103') NOT NULL,
`severity` enum('0','1','2','3','4','5','6','7') NOT NULL,
`program` int(10) unsigned NOT NULL,
`msg` varchar(2048) NOT NULL,
`mne` int(10) unsigned NOT NULL,
`suppress` datetime NOT NULL DEFAULT '2010-03-01 00:00:00',
`counter` int(11) NOT NULL DEFAULT '1',
`fo` datetime NOT NULL,
`lo` datetime NOT NULL,
`notes` varchar(255) NOT NULL,
PRIMARY KEY (`id`,`lo`),
KEY `facility` (`facility`),
KEY `severity` (`severity`),
KEY `mne` (`mne`),
KEY `program` (`program`),
KEY `suppress` (`suppress`)
) ENGINE=MyISAM AUTO_INCREMENT=103 DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( TO_DAYS( lo ))
(PARTITION p20100623 VALUES LESS THAN (734311) ENGINE = MyISAM,
PARTITION p20100624 VALUES LESS THAN (734312) ENGINE = MyISAM) */
1 row in set (0.02 sec)
mysql> alter table logs PARTITION BY RANGE( TO_DAYS( lo ) ) (PARTITION p20100629 VALUES LESS THAN (to_days('2010-06-29')));
Query OK, 102 rows affected (0.16 sec)
Records: 102 Duplicates: 0 Warnings: 0
mysql> show create table logs \G
*************************** 1. row ***************************
Table: logs
Create Table: CREATE TABLE `logs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`host` varchar(128) NOT NULL,
`facility` enum('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','100','101','102','103') NOT NULL,
`severity` enum('0','1','2','3','4','5','6','7') NOT NULL,
`program` int(10) unsigned NOT NULL,
`msg` varchar(2048) NOT NULL,
`mne` int(10) unsigned NOT NULL,
`suppress` datetime NOT NULL DEFAULT '2010-03-01 00:00:00',
`counter` int(11) NOT NULL DEFAULT '1',
`fo` datetime NOT NULL,
`lo` datetime NOT NULL,
`notes` varchar(255) NOT NULL,
PRIMARY KEY (`id`,`lo`),
KEY `facility` (`facility`),
KEY `severity` (`severity`),
KEY `mne` (`mne`),
KEY `program` (`program`),
KEY `suppress` (`suppress`)
) ENGINE=MyISAM AUTO_INCREMENT=103 DEFAULT CHARSET=latin1
/*!50100 PARTITION BY RANGE ( TO_DAYS( lo ))
(PARTITION p20100629 VALUES LESS THAN (734317) ENGINE = MyISAM) */
1 row in set (0.00 sec)
mysql> exit
The LogZilla is writing into Database again:
-03-01 00:00:00 | 1 | 2010-06-23 21:40:17 | 2010-06-23 21:40:17 | |
| 103 | logzilla.lantest.net.br | 5 | 5 | 2602577109 | syslog-ng starting up; version='2.1.4' | 3751981041 | 2010-03-01 00:00:00 | 1 | 2010-06-28 22:30:30 | 2010-06-28 22:30:30 | |
| 104 | logzilla.lantest.net.br | 10 | 6 | 3917628041 | pam_unix(sshd:session): session closed for user alessandro | 3751981041 | 2010-03-01 00:00:00 | 1 | 2010-06-28 22:31:19 | 2010-06-28 22:31:19 | |
More information:
I saw my "event_scheduler" and was "ON":
mysql> SELECT @@event_scheduler;
+-------------------+
| @@event_scheduler |
+-------------------+
| ON |
+-------------------+
1 row in set (0.00 sec)
at the /etc/my.cnf, also is "ON":
vim /etc/my.cnf
----------------------------------------------------------
.
..
...
event_scheduler=ON
...
..
.
|-------^ File: /etc/my.cnf ------------------------
The problem was occurred when I was turned off my server.
Then, what I did that the problem was occurred and what can I do to not occur again?
Thank you for the post.