Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy committed Apr 7, 2022
1 parent 672eb26 commit 26ffe3b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs-2.0/5.configurations-and-logs/2.log-management/audit-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Nebula Graph 的审计日志功能可以将 Graph 服务接受到的所有操作

## 日志类别

|类别|说明|
|:--|:--|
|`LOGIN` |客户端尝试连接 Graph 服务时,记录相关信息。 |
|`EXIT` | 断开与 Graph 服务的连接时,记录相关信息。 |
|`DDL` |记录 DDL 语句的信息,包括元数据的变化信息。例如`CREATE SPACE``ALTER TAG``REBUILD INDEX`|
|`DQL` |记录 DQL 语句的信息,包括查询、排序等信息。例如`MATCH``GO``GET SUBGRAPH``ORDER BY``YIELD``RETURN`|
|`DML` |记录 DML 语句的信息,包括实际数据的变化信息。例如`INSERT VERTEX``INSERT EDGE``DELETE EDGE`|
|`DCL`|记录 DCL 语句的信息,包括用户创建授权、快照、作业等运维信息。例如`CREATE USER``CREATE SNAPSHOT``ADD LISTENER``BALANCE`|
|`UTIL`|记录工具类语句的信息,包括`SHOW``DESCRIBE``USE``SIGN IN``KILL QUERY``INGEST`等语句|
|`unknown`|记录未能识别的语句。|
|类别|语句|说明|
|:--|:--|:--|
|`login` |-| 客户端尝试连接 Graph 服务时,记录相关信息。 |
|`exit` |-| 断开与 Graph 服务的连接时,记录相关信息。 |
|`ddl` |`CREATE SPACE``DROP SPACE``CREATE TAG``DROP TAG``ALTER TAG``DELETE TAG``CREATE EDGE``DROP EDGE``ALTER EDGE``CREATE INDEX``REBUILD INDEX``DROP INDEX``CREATE FULLTEXT INDEX``REBUILD FULLTEXT INDEX``DROP FULLTEXT INDEX`|记录 DDL 语句的信息|
|`dql` |`MATCH``LOOKUP``GO``FETCH``GET SUBGRAPH``FIND PATH``UNWIND``GROUP BY``ORDER BY``YIELD``LIMIT``RETURN`|记录 DQL 语句的信息|
|`dml` |`INSERT VERTEX``DELETE VERTEX``UPDATE VERTEX``UPSERT VERTEX``INSERT EDGE``DELETE EDGE``UPDATE EDGE``UPSERT EDGE`|记录 DML 语句的信息|
|`dcl`|`CREATE USER``GRANT ROLE``REVOKE ROLE``CHANGE PASSWORD``ALTER USER``DROP USER``CREATE SNAPSHOT``DROP SNAPSHOT``ADD LISTENER``REMOVE LISTENER``BALANCE``SUBMIT JOB``STOP JOB``RECOVER JOB``ADD DRAINER``REMOVE DRAINER`|记录 DCL 语句的信息|
|`util`|`SHOW HOSTS``SHOW USERS``SHOW ROLES``SHOW SNAPSHOTS``SHOW SPACES``SHOW PARTS``SHOW TAGS``SHOW EDGES``SHOW INDEXES``SHOW CREATE SPACE``SHOW CREATE TAG/EDGE``SHOW CREATE INDEX``SHOW INDEX STATUS``SHOW LISTENER``SHOW TEXT SEARCH CLIENTS``SHOW DRAINER CLIENTS``SHOW FULLTEXT INDEXES``SHOW CONFIGS``SHOW CHARSET``SHOW COLLATION``SHOW STATS``SHOW SESSIONS``SHOW META LEADER``SHOW DRAINERS``SHOW QUERIES``SHOW JOB``SHOW JOBS``DESCRIBE INDEX``DESCRIBE EDGE``DESCRIBE TAG``DESCRIBE SPACE``DESCRIBE USER``USE SPACE``SIGN IN TEXT SERVICE``SIGN OUT TEXT SERVICE``SIGN IN DRAINER SERVICE``SIGN OUT DRAINER SERVICE``EXPLAIN``PROFILE``KILL QUERY``DOWNLOAD HDFS``INGEST`|记录工具类语句的信息|
|`unknown`|-|记录未能识别的语句。|

## 设置审计日志

Expand Down

0 comments on commit 26ffe3b

Please sign in to comment.