提交 e28c79b2 编写于 作者: G Ganlin Zhao

disable audit by default

上级 ce6e62a8
......@@ -192,7 +192,7 @@ keepColumnName 1
# monitor 1
# enable/disable system audit
# audit 1
# audit 0
# enable/disable recording the SQL statements via restful interface
# httpEnableRecordSql 0
......@@ -321,4 +321,4 @@ keepColumnName 1
# writeBatchTimeout 10
# using thread local write batching. this option is not available when writeBatchSize = 0.
# writeBatchThreadLocal 0
\ No newline at end of file
# writeBatchThreadLocal 0
......@@ -206,7 +206,7 @@ char tsInternalPass[] = "secretkey";
int32_t tsMonitorInterval = 30; // seconds
// audit
int8_t tsEnableAudit = 1;
int8_t tsEnableAudit = 0;
char tsAuditDbName[TSDB_DB_NAME_LEN] = "audit";
// stream
......
......@@ -281,7 +281,7 @@ static void *monAuditFunc(void *param) {
int32_t try = 0;
for (; try < AUDIT_MAX_RETRIES; ++try) {
auditConn = taos_connect(NULL, "root", "taosdata", "", 0);
auditConn = taos_connect(NULL, "monitor", tsInternalPass, "", 0);
if (auditConn == NULL) {
monDebug("audit retry connect, tries: %d", try);
taosMsleep(1000);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册