# audit_log

client_ip: 127.0.0.1:35660
username: root
category: Connection
description: create or update connection info
response_detail: {"code":"0","message":"Save successfully"}
response_code: 0
request_detail:
  {"connection":{"alias":"iotdb-test","host":"127.0.0.1","password":"******","port":6667,"userId":1,"username":"root"}}


client_ip: 127.0.0.1:35660
username: root
category: Connection
description: get all connection infos
request_detail: {"userId":1}
response_code: 0
response_detail:
  {"code":"0","data":{"aliasList":[{"alias":"iotdb-test","host":"127.0.0.1","id":14,"port":6667,"username":"root"}],"userId":1},"message":"Get successfully"}


client_ip: 127.0.0.1:54880
username: root
category: System
description: get ServerInfo
request_detail: {"serverId":14}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":[{"active":false,"clusterList":[{"configConsensusPort":10720,"internalAddress":"127.0.0.1","internalPort":10710,"nodeId":0,"nodeType":"ConfigNode","rpcAddress":"","status":"Running"},{"dataConsensusPort":10760,"internalAddress":"127.0.0.1","internalPort":10730,"mppPort":10740,"nodeId":1,"nodeType":"DataNode","rpcAddress":"0.0.0.0","rpcPort":6667,"schemaConsensusPort":10750,"status":"Running"}],"enterprise":false,"isEnterprise":false,"isMaster":true,"port":6667,"serverId":14,"status":true,"systemStatus":"Running","url":"127.0.0.1","version":"1.3.0"}],"message":"Get IoTDB data statistics successfully"}


client_ip: 127.0.0.1:54880
username: root
category: System
description: get data management privileges of user
request_detail: {"userName":"root","serverId":14}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":{"name":"root","path":"root","privileges":["READ_TIMESERIES","CREATE_DATABASE","UPDATE_TIMESERIES","DELETE_TIMESERIES","INSERT_TIMESERIES","CREATE_TIMESERIES","DELETE_DATABASE","ALTER_TIMESERIES"]},"message":"Get successfully"}


client_ip: 127.0.0.1:54880
username: root
category: System
description: get all authority management privileges of user
request_detail: {"userName":"root","serverId":14}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":["REVOKE_USER_PRIVILEGE","SHOW_CONTINUOUS_QUERIES","CREATE_USER","STOP_TRIGGER","GRANT_USER_ROLE","MODIFY_PASSWORD","CREATE_CONTINUOUS_QUERY","GRANT_ROLE_PRIVILEGE","DROP_CONTINUOUS_QUERY","LIST_ROLE","UPDATE_TEMPLATE","GRANT_USER_PRIVILEGE","REVOKE_USER_ROLE","DROP_TRIGGER","START_TRIGGER","CREATE_TRIGGER","DELETE_USER","CREATE_FUNCTION","LIST_USER","REVOKE_ROLE_PRIVILEGE","READ_TEMPLATE","DELETE_ROLE","APPLY_TEMPLATE","CREATE_ROLE","READ_TEMPLATE_APPLICATION","DROP_FUNCTION"],"message":"Get successfully"}


client_ip: 127.0.0.1:54914
username: root
category: IotDBSchema
description: get storageGroups(databases) lists
request_detail: {"showAll":false,"serverId":14}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":[{"groupName":"root.test"},{"groupName":"root.ln"}],"message":"Get successfully"}


client_ip: 127.0.0.1:54914
username: root
category: IotDBSchema
description: get Timechodb data model infos
request_detail: {"path":"root","serverId":14}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":{"children":[{"deviceCount":1,"isDevice":false,"isGroup":true,"isMeasurement":false,"name":"ln","path":"root.ln"},{"deviceCount":1,"isDevice":false,"isGroup":true,"isMeasurement":false,"name":"test","path":"root.test"}],"groupCount":2,"isDevice":false,"isGroup":false,"isMeasurement":false,"name":"root","pageNum":1,"pageSize":100,"path":"root","total":2,"totalSonNodeCount":2},"message":"Get IoTDB data model successfully"}


client_ip: 127.0.0.1:54898
username: root
category: IotDBSchema
description: get Timechodb data count (database、devices、monitor) and version infos
request_detail: {"serverId":14}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":{"dataCount":0,"deviceCount":2,"monitorCount":3,"storageGroupCount":2,"version":"1.3.0"},"message":"Get IoTDB data statistics successfully"}


client_ip: 127.0.0.1:54898
username: root
category: System
description: echo
request_detail: {"serverId":14}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":[{"clusterList":[{"configConsensusPort":10720,"internalAddress":"127.0.0.1","internalPort":10710,"nodeId":0,"nodeType":"ConfigNode","rpcAddress":"","status":"Running"},{"dataConsensusPort":10760,"internalAddress":"127.0.0.1","internalPort":10730,"mppPort":10740,"nodeId":1,"nodeType":"DataNode","rpcAddress":"0.0.0.0","rpcPort":6667,"schemaConsensusPort":10750,"status":"Running"}],"isMaster":true,"port":6667,"status":true,"systemStatus":"Running","url":"127.0.0.1"}],"message":"Get IoTDB data systemStatus successfully"}


client_ip: 127.0.0.1:54898
username: root
category: IotDBSchema
description: get storageGroups(databases) infos
request_detail: {"pageSize":10,"serverId":14,"pageNum":1}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":{"groupCount":2,"groupInfoList":[{"deviceCount":1,"groupName":"root.test"},{"deviceCount":1,"groupName":"root.ln"}]},"message":"Get successfully"}


client_ip: 127.0.0.1:54898
username: root
category: IotDBSchema
description: get device tree infos by storagegroup(database) name
request_detail: {"groupName":"root.test","pageSize":10,"serverId":14,"pageNum":1}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":{"children":[{"name":"root.test.pig1.noise"}],"name":"root.test","pageNum":1,"pageSize":10,"total":1},"message":"Get successfully"}


client_ip: 127.0.0.1:54914
username: root
category: IotDBSchema
description: get device detail infos by storagegroup(database) name
request_detail: {"groupName":"root.test","pageSize":10,"serverId":14,"pageNum":1}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":{"deviceInfos":[{"deviceName":"root.test.pig1.noise","line":2,"parents":["root.test.pig1.noise"]}],"totalCount":1,"totalPage":1},"message":"Get successfully"}


client_ip: 127.0.0.1:54914
username: root
category: IotDBSchema
description: Get information of the specified entity by sg name
request_detail: {"serverId":14,"deviceName":"root.test.pig1.noise"}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":{"devices":"root.test.pig1.noise","isAligned":"false"},"message":"Get successfully"}


client_ip: 127.0.0.1:54888
username: root
category: IotDBSchema
description: Gets detailed information of measurements under the specified entity
response_code: 0
connection_name: iotdb-test
request_detail:
  {"pageSize":10,"searchDTO":{"deviceName":"root.test.pig1.noise","keyword":"","tagKey":"","tagValue":""},"serverId":14,"pageNum":1}

response_detail:
  {"code":"0","data":{"measurementVOList":[{"alias":"null","attributes":[],"compression":"LZ4","dataType":"INT64","encoding":"PLAIN","tags":[],"timeseries":"root.test.pig1.noise.iccid"},{"alias":"null","attributes":[],"compression":"LZ4","dataType":"FLOAT","encoding":"PLAIN","tags":[],"timeseries":"root.test.pig1.noise.value"}],"totalCount":2,"totalPage":1},"message":"Get successfully"}


client_ip: 127.0.0.1:54888
username: root
category: IoTDBData
description: Gets detailed information of measurements under the specified entity
response_detail: {"code":"0","data":{"textCount":{},"timeList":[],"valueList":[]},"message":"Get successfully"}
response_code: 0
connection_name: iotdb-test
request_detail:
  {"timeseriesName":"root.test.pig1.noise.iccid","dataType":"INT64","serverId":14,"deviceName":"root.test.pig1.noise"}


client_ip: 127.0.0.1:54892
username: root
category: IoTDBData
description: Gets detailed information of measurements under the specified entity
request_detail: {"serverId":14,"info":{"timeseries":"root.test.pig1.noise.value"}}
response_code: 0
connection_name: iotdb-test
response_detail:
  {"code":"0","data":{"newValue":"10.0","newValueTime":"1970/01/01 08:00:00.100"},"message":"Get successfully"}


client_ip: 127.0.0.1:54880
username: root
category: IoTDBData
description: Gets detailed information of measurements under the specified entity
response_code: 0
connection_name: iotdb-test
request_detail:
  {"timeseriesName":"root.test.pig1.noise.value","dataType":"FLOAT","serverId":14,"deviceName":"root.test.pig1.noise"}

response_detail:
  {"code":"0","data":{"textCount":{},"timeList":["1970-01-01 08:00:00.1"],"valueList":["10.0"]},"message":"Get successfully"}


client_ip: 127.0.0.1:54914
username: root
category: IoTDBData
description: Get measurement data of the specified entity
response_code: 0
connection_name: iotdb-test
request_detail:
  {"dataQueryDTO":{"aggregation":"last_value","ascOrDesc":false,"endTime":"2024-01-19 23:59:59","measurementList":[],"startTime":"2024-01-12 00:00:00","unitInterval":"h"},"columnNum":1,"columnSize":100,"pageSize":10,"serverId":14,"deviceName":"root.test.pig1.noise","pageNum":1}

response_detail:
  {"code":"0","data":{"currentColumnPage":1,"currentPage":1,"metaDataList":["Time","root.test.pig1.noise.iccid","root.test.pig1.noise.value"],"totalColumnCount":2,"totalColumnPage":1,"totalCount":0,"totalPage":0,"typeList":["INT64","INT64","FLOAT"],"valueList":[]},"message":"Get successfully"}


client_ip: 127.0.0.1:38456
username: root
category: Connection
description: get all connection infos
request_detail: {"userId":1}
response_code: 0
response_detail:
  {"code":"0","data":{"aliasList":[{"alias":"iotdb-test","host":"127.0.0.1","id":14,"port":6667,"username":"root"},{"alias":"iotdb-测试","host":"60.204.152.17","id":15,"port":6667,"username":"root"}],"userId":1},"message":"Get successfully"}


