云日志服务 LTS-文档数据库服务DDS接入LTS:DDS审计日志结构化模板日志详情

时间:2024-07-04 10:52:11

DDS审计日志结构化模板日志详情

  • DDS审计日志示例
    表5 结构化模板示例

    模板名称

    示例日志

    DDS审计日志

    {"topic":"auditLog","instanceid":"9fbf813bc27e4a3ab54bddf783a4f774in01","nodeid":"bf4cb0413d0b4221be94b08471708586no01","db":"test","coll":"testCollection","optype":"update","time":"2022-08-05T08:24:15.536+0000","user_ip":"10.4.23.205","user_port":"47668","user":"rw_testuser","param":{"command":"update","ns":"test.testCollection","op":[{"q":{"vin":"LDP31B965NG036174"},"u":{"$set":{"timestamp":{"$numberLong":"1659687855535"},"deviceTime":{"$numberLong":"1659687855340"},"longitude":"119.35516805555555","latitude":"26.057936388888891","location":"119.35516805555555,26.057936388888891","height":"10.097286797128618","direction":"12","speed":14,"accuracy":"0","h3Address7":"8741b5300ffffff"}},"upsert":true}],"args":{"update":"testCollection","ordered":true,"$db":"test","$clusterTime":{"clusterTime":{"$timestamp":{"t":1659687855,"i":1685}},"signature":{"hash":{"$binary":"CP5bfEf+gBJZdAxCKtF9HiSeqQY=","$type":"00"},"keyId":{"$numberLong":"7102408879899674942"}}},"lsid":{"id":{"$binary":"PXVVrbuvRuGkypCbu/oXXQ==","$type":"04"}}}}}
  • 结构化字段及字段说明
    表6 结构化字段

    字段

    示例

    描述

    类型

    topic

    auditLog

    消息主题

    string

    instanceid

    9fbf813bc27e4a3ab54bddf783a4f774in01

    实例ID

    string

    nodeid

    bf4cb0413d0b4221be94b08471708586no01

    节点ID

    string

    db

    test

    数据库名

    string

    coll

    testCollection

    开启分片的集合名

    string

    optype

    update

    操作类型

    string

    time

    2022-08-05T08:24:15.536+0000

    审计日志时间

    string

    user_ip

    10.4.23.205

    客户端IP

    string

    user_port

    47668

    客户端端口

    string

    user

    rw_testuser

    数据库用户账户

    string

    param

    {\"command\":\"update\",\"ns\":\"test.testCollection\",\"op\":[{\"q\":{\"vin\":\"LDP31B965NG036174\"},\"u\":{\"$set\":{\"timestamp\":{\"$numberLong\":\"1659687855535\"},\"deviceTime\":{\"$numberLong\":\"1659687855340\"},\"longitude\":\"119.35516805555555\",\"latitude\":\"26.057936388888891\",\"location\":\"119.35516805555555,26.057936388888891\",\"height\":\"10.097286797128618\",\"direction\":\"12\",\"speed\":14,\"accuracy\":\"0\",\"h3Address7\":\"8741b5300ffffff\"}},\"upsert\":true}],\"args\":{\"update\":\"testCollection\",\"ordered\":true,\"$db\":\"test\",\"$clusterTime\":{\"clusterTime\":{\"$timestamp\":{\"t\":1659687855,\"i\":1685}},\"signature\":{\"hash\":{\"$binary\":\"CP5bfEf+gBJZdAxCKtF9HiSeqQY=\",\"$type\":\"00\"},\"keyId\":{\"$numberLong\":\"7102408879899674942\"}}},\"lsid\":{\"id\":{\"$binary\":\"PXVVrbuvRuGkypCbu/oXXQ==\",\"$type\":\"04\"}}}}

    数据库操作详情和参数

    string

support.huaweicloud.com/usermanual-lts/lts_04_0529.html