Skip to content

Collector「Alibaba Cloud-DNSLogs」Configuration Guide

Before reading this, please read the following first:

Before using this collector, you must install the 「Integration Core Package」and its associated third-party dependency packages

1. Configuration Structure

This script requires no additional configuration.

2. Data Reporting Format

After data synchronization is successful, you can view the data in the 「LOG-Explorer」of TrueWatch.

An example of parsing operation log data is as follows:

JSON
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "measurement": "aliyun_dns_record_logs",
  "tags": {
    "domain" : "cloudxxxxxx",
    "Action" : "DEL",
    "Message": "Delete resolution record.xxxxxx"
  },
  "fields": {
    "ActionTime": "2022-03-15T14:56Z",
    "message"   : "{complete instance JSON data of logs}"
  }
}

The fields in tags and fields may change with subsequent updates

When scheduled tasks are enabled, considering that the API can only return data on a daily basis, to ensure no duplicate reporting of log data, the scheduled task synchronizes data with a time range of 1 day

The value of tags.domain is the domain name, used as the source of log data, and fields.message is the serialized string of the complete log JSON

X. Appendix

Please refer to the official Alibaba Cloud documentation: