TD-26884
This commit is contained in:
parent
7e3285e9e4
commit
ecd5f1084c
|
@ -98,7 +98,7 @@ int32_t tsMonitorMaxLogs = 100;
|
||||||
bool tsMonitorComp = false;
|
bool tsMonitorComp = false;
|
||||||
|
|
||||||
// audit
|
// audit
|
||||||
bool tsEnableAudit = false;
|
bool tsEnableAudit = true;
|
||||||
char tsAuditFqdn[TSDB_FQDN_LEN] = {0};
|
char tsAuditFqdn[TSDB_FQDN_LEN] = {0};
|
||||||
uint16_t tsAuditPort = 6043;
|
uint16_t tsAuditPort = 6043;
|
||||||
|
|
||||||
|
|
|
@ -314,8 +314,7 @@ _CONNECT:
|
||||||
sprintf(obj, "%s:%d", ip, pConn->port);
|
sprintf(obj, "%s:%d", ip, pConn->port);
|
||||||
|
|
||||||
char detail[1000] = {0};
|
char detail[1000] = {0};
|
||||||
sprintf(detail, "connType:%d, db:%s, pid:%d, startTime:%" PRId64 ", sVer:%s, app:%s",
|
sprintf(detail, "app:%s", connReq.app);
|
||||||
connReq.connType, connReq.db, connReq.pid, connReq.startTime, connReq.sVer, connReq.app);
|
|
||||||
|
|
||||||
auditRecord(pReq, pMnode->clusterId, "login", connReq.user, obj, detail, strlen(detail));
|
auditRecord(pReq, pMnode->clusterId, "login", connReq.user, obj, detail, strlen(detail));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue