Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.0.3
-
2016-21, 2016-22, 2016-23
Description
the default syslog for column store is:
[root@centos7 rsyslog.d]# cat 49-columnstore.conf
|
# MariaDb Columnstore Database Platform Logging
|
local1.crit -/var/log/mariadb/columnstore/crit.log
|
local1.err -/var/log/mariadb/columnstore/err.log
|
local1.warning -/var/log/mariadb/columnstore/warning.log
|
local1.info -/var/log/mariadb/columnstore/info.log
|
local1.debug -/var/log/mariadb/columnstore/debug.log
|
I try to disable debug log:
[david@centos7 rsyslog.d]$ mcsadmin disablelog pm1 debug
|
disablelog Wed Oct 19 06:38:24 2016
|
|
**** disableLog Failed : API Failure return in updateLog API
|
failed ,no change to the columnstore.conf file
Enable goes ok:
[david@centos7 rsyslog.d]$ mcsadmin enablelog pm1 debug
|
enablelog Wed Oct 19 06:39:15 2016
|
|
Successful Enabling of Logging
|
But file update seems wrong:
[root@centos7 rsyslog.d]# cat 49-columnstore.conf
|
# MariaDb Columnstore Database Platform Logging
|
local1.crit -/var/log/mariadb/columnstore/crit.log
|
local1.err -/var/log/mariadb/columnstore/err.log
|
local1.warning -/var/log/mariadb/columnstore/warning.log
|
local1.info -/var/log/mariadb/columnstore/info.log
|
local1.debug -/var/log/mariadb/columnstore/debug.log
|
|
local1.=debug -/var/log/mariadb/columnstore/debug.log
|
disablelog now works removing the last line:
[david@centos7 rsyslog.d]$ mcsadmin disablelog pm1 debug
|
disablelog Wed Oct 19 06:39:58 2016
|
|
Successful Disabling of Logging
|
However none of this achieved what i want.
Looking at processmonitor.cpp, i can see that updateLog is looking for lines starting local2 not local1 which might be the cause of the problem.
A workaround is of course to just edit the log file directly.