Updated on 2024-03-22 GMT+08:00

Collecting Logs from DCS

This section describes the DCS structuring template details.

Structuring Template Details

  • DCS audit log structuring template example
    Table 1 Structuring template example

    Template Name

    Example Log

    DCS audit logs

    {"time": 1640966500017, "instance_id": "199a1e5a-8a37-40b9-899e-0ab6805c69eb", "server_addr": "192.168.0.1", "role": "proxy", "client_addr": "10.0.0.1", "client_type": "0", "user": "default", "db": 1, "command_name": "DEL", "command_type": "string", "command_keys": ["key1", "key2", "key3"], "command_param": "DEL key1 key2 key3", "use_time": 500, "extend": ""}
  • Structuring fields and description
    Table 2 Structuring fields

    Field

    Example

    Description

    Type

    time

    1640966500017

    Time

    long

    instance_id

    199a1e5a-8a37-40b9-899e-0ab6805c69eb

    Instance ID

    string

    server_addr

    192.168.0.1

    Server IP

    string

    role

    proxy

    Node role

    string

    client_addr

    10.0.0.1

    Client IP

    string

    client_type

    0

    Client type

    string

    user

    default

    Account name

    string

    db

    1

    Database

    long

    command_name

    DEL

    Command

    string

    command_type

    string

    Command type

    string

    command_keys

    [\"key1\",\"key2\",\"key3\"]

    Command keys

    string

    command_param

    DEL key1 key2 key3

    Command content

    string

    use_time

    500

    Execution duration

    long

    extend

    -

    Extended information

    string