Collector Configuration Manual for "AWS-OpenSearch"
Before reading this article, 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
The configuration structure of this collector is as follows:
Field | Type | Required | Description |
---|---|---|---|
regions |
list | Required | List of regions to collect data from |
regions[#] |
str | Required | Region ID. Example: 'cn-north-1' Full list in the appendix |
2. Configuration Examples
Specified Regions
Collecting instance data from Ningxia and Beijing regions.
Python | |
---|---|
1 2 3 |
|
3. Data Reporting Format
After data synchronization is successful, you can view the data in the "Infrastructure - Resource Catalog" section of {{( brand_name }}}.
Example of reported data:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
Fields in tags and fields may change with subsequent updates.
The value of tags.name corresponds to the instance ID, which serves as a unique identifier.
In this script, the data field corresponding to tags.name is DomainName; when using this script, ensure that there are no duplicate DomainName values across multiple AWS accounts.
tags.ClusterConfig, tags.Endpoint, tags.ServiceSoftwareOptions, fields.message, fields.EBSOptions, and fields.Endpoints are all strings serialized in JSON format.
4. IAM Policy Permissions
If the user collects resources using an IAM role, certain operational permissions must be enabled.
This collector requires the following permissions:
es:ListDomainNames
es:DescribeDomains
X. Appendix
Please refer to the official AWS documentation: