Managing Log Access Rules
This section describes how to manage log access rules. You can add, view, and delete these rules.
Prerequisites
- You have created a log group and log stream. For details, see Creating Log Groups and Log Streams. You can also directly create them on the Add Access Rule page.
- You have created a cluster, namespace, and workload. For details, see Cloud Container Engine (CCE) User Guide.
Constraints
Configured log access rules into LTS might impact log data in LTS and result in additional fees. Exercise caution.
Configuring Access Rules
To map the logs of CCE, CCI, or custom clusters in AOM to LTS, perform the following steps:
- Log in to the AOM 2.0 console.
- In the navigation pane, choose Log Analysis > LTS Access.
- Click Add Access Rule.
- Select an access type. Access by Namespace, Access by Workload, or Automatic Mapping are available.
- Access by Namespace: All logs of the selected namespace are connected to the specified log stream.
- Rule Name: Enter a rule name. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.
- Cluster: Select a cluster from the drop-down list.
- Namespace: Select a namespace from the drop-down list.
- Workload: Retain the default value All.
- Container Name: Select a container from the drop-down list box.
- Set an access rule. If no log group or stream meets your requirements, click Add Log Group and Add Log Stream to add ones. After creating a log stream, select an enterprise project.
- Access all logs: If you select this option, select a log group and log stream.
- Specify log paths: If you select this option, specify a log path and then select a log group and log stream.
- Access by Workload: Logs of the selected workload are connected to the specified log stream.
- Rule Name: Enter a rule name. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.
- Cluster: Select a cluster from the drop-down list.
- Namespace: Select a namespace from the drop-down list.
- Workload: Select one or more workloads from the drop-down list.
- Container Name: Select a container from the drop-down list box.
- Set an access rule. If no log group or stream meets your requirements, click Add Log Group and Add Log Stream to add ones. After creating a log stream, select an enterprise project.
- Access all logs: If you select this option, select a log group and log stream.
- Specify log paths: If you select this option, specify a log path and then select a log group and log stream.
- Automatic Mapping: Workload logs are automatically connected to the generated log streams with the same names as the workloads.
- Rule Name: Enter a rule name. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.
- Namespace: Select a namespace from the drop-down list.
- Workload: Select one or more workloads from the drop-down list.
If you select one workload, the rule name is changed to Custom rule name_0 after the rule is created, for example, test_0. If you select multiple workloads, the rule names are changed to Custom rule name_0, Custom rule name_1, and so on, such as test_0 and test_1.
- Set an access rule: Select a log group and an enterprise project, and specify a log stream prefix. A log stream will be generated based on the log stream prefix and workload name. By default, all logs of the selected workload are connected.
- Access by Namespace: All logs of the selected namespace are connected to the specified log stream.
Other Operations
On the LTS Access page, you can search for, view, edit, and delete access rules.
Operation |
Description |
---|---|
Search |
Click the search box, select a search dimension, for example, Workload, and then select options under this dimension. You can also directly enter a keyword in the search box. In this case, the system searches for information based on access rule names by default. |
View |
|
Customize columns |
Click |
Edit |
On the LTS Access page, click Edit in the Operation column to edit an access rule. For details about the impact of modifying an access rule, see Modifying a Mapping. |
Delete |
On the LTS Access page, click Delete in the Operation column to delete an access rule. Select one or more access rules and click Delete above the rule list. Deleted access rules or mapped log streams cannot be recovered. Exercise caution. For the impact, see Deleting a Mapping. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot