Integrate product logs
When logs are scattered across Alibaba Cloud products, third-party clouds, and self-built applications, it is difficult to run unified threat detection and security analysis. This topic describes how to integrate Alibaba Cloud product logs, third-party logs, and custom product application logs into Agentic SOC from the Integration Settings page in the Security Center console. It covers configuring data sources, parsing rules, and log ingestion modes, and enabling access policies. It also describes access policy management, quotas and limits, and billing.
How it works
Agentic SOC brings logs from different sources into a unified security analysis flow: logs are first read from a data source, then parsed into unified fields by a parsing rule, then consumed, stored, and queried according to the log ingestion mode, and finally bound and executed by an access policy. The role of each part is as follows:
-
Data Source: Specifies where the raw logs are stored, that is, where logs are read from, such as the Project and Logstore in Simple Log Service (SLS).
NoteThe following three types are supported: Agentic SOC Dedicated Collection Channel, User Log Service, and Security Center Log Service. For more information, see Data Source type comparison.
-
Parsing Rules: Determines how logs are parsed. Agentic SOC parses raw logs based on SPL and outputs fields that match the selected log structure.
-
A parsing rule uses SPL syntax to extract key fields, such as the source IP address and destination port. The parsing result can use a standardized or native structure.
ImportantExtended field ingestion is displayed only for the standardized structure. If you select Keep Original, more ingested fields increase data traffic fees.
-
The standardized structure is associated with a Dataset so that detection rules and reports can be reused. The native structure retains the original log fields and is suitable for forensics, troubleshooting, and native queries.
-
-
Log Ingestion Method: Determines how logs are consumed, stored, and queried after they enter Agentic SOC, that is, where logs are stored and how they are queried.
NoteYou can choose ingest and store (native or standardized logs) or ingest without storage (standardized logs). For details, see Log ingestion mode comparison.
-
Access Policy: Binds the Data Source, Log Ingestion Method, and Parsing Rules into a complete ingestion pipeline. Logs are read, parsed, and processed along this pipeline.
Integrate Alibaba Cloud products
If your Alibaba Cloud products (such as Web Application Firewall (WAF), Cloud Firewall (CFW), or ActionTrail) already deliver logs to your own SLS logstore, follow the procedure in this section.
Integration flowchart
Step 1: Enable product log delivery
Before you start, make sure that log auditing is enabled for the target cloud product and that logs are delivered to Simple Log Service (SLS). This is the basis for Agentic SOC to read logs.
Alert logs of cloud security products in the logstore of the Alibaba Cloud product business center are automatically delivered to Agentic SOC. You can integrate these logs without enabling the product log service, for example, WAF alert logs and Cloud Firewall alert logs.
Center-side logs are automatically delivered by the cloud security product business center and do not need to be manually enabled. The following center-side logs are supported:
|
Log name |
Recorded content |
|
Cloud Firewall alert logs |
Records intrusion alert events detected by the Cloud Firewall IPS (intrusion prevention system) engine, corresponding to the alert information displayed to users in the Cloud Firewall console. |
|
Cloud Firewall VPC alert logs |
Records alerts generated when Cloud Firewall performs IPS protection on traffic between VPCs, corresponding to the alerts related to VPC boundary protection in the Cloud Firewall console. |
-
Go to the console of the target cloud product (such as WAF or CFW) and find the log management or log service entry. For details, see Alibaba Cloud product log ingestion to SLS references.
-
Enable log delivery as instructed in the product documentation. This operation usually automatically creates a Project and one or more Logstores in SLS.
NoteLog on to the Simple Log Service console to view the Project and Logstore to which the product delivers logs. For example, the WAF log project is usually named
wafnew-logstore.
Step 2: Enable the built-in access policy
Enable manually
-
Configure the data source
Agentic SOC provides preset data source configurations for mainstream Alibaba Cloud products. Check these configurations and make sure that they match the actual logstore information.
-
Find the cloud product
-
Access the Security Center console - Agentic SOC - Management - Integration Settings. In the upper-left corner of the page, select the region of your assets: Chinese Mainland or Outside Chinese Mainland..
-
On the Service Integration tab, set the Service Provider filter to Alibaba Cloud. Select the product to integrate (for example, Web Application Firewall) and click Access Settings in the Actions column.
-
-
Check the data source connection status
-
Click the data source name associated with the product. The page switches to the Data Source tab.
-
Locate the target data source and check its connection status:
-
Normal: Agentic SOC can access the logstore. Proceed to the next step.
-
Abnormal: The configuration is incorrect. Click Edit in the Actions column of the data source, and check the following information:
-
Instance information: Check whether the region, Project, and Logstore recorded in Step 1 match exactly.
-
Source log service: Make sure that the SLS logstore itself is working properly, for example, the Project is not disabled and logs are still being written.
-
-
Not connected: The data source is not configured yet.
-
Click Edit in the Actions column of the data source to open the edit page.
-
Click Create Instance and select the logstore information that was automatically created when you enabled log delivery in Step 1 (Region ID, Project, and Logstore).
-
-
-
-
-
Enable the built-in access policy
After the access policy is enabled, the log processing pipeline starts and Agentic SOC automatically analyzes product logs.
-
Return to the Service Integration tab and open the Access Settings page of the target product again.
-
Modify the log ingestion mode (optional)
For some products, you can change the Log Ingestion Method on the edit page. The following modes are supported: Ingest and store, storage format: native logs, Ingest and store, storage format: normalized logs, and Ingest only, no storage. Query format: normalized logs. For details, see Log ingestion mode comparison.
Important-
If the data source type is Security Center Log Service or the log is an alert log, only Ingest and store modes are supported. Ingest only, no storage. Query format: normalized logs cannot be selected.
-
A dataset (StoreView) associated with Standardization Category or Structure can be bound to at most 5 access policies that use the Ingest only, no storage. Query format: normalized logs mode. If the limit has been reached, select an Ingest and store mode for the current policy. Otherwise, the access policy fails to be enabled.
-
-
Test log parsing (optional)
The access test confirms log arrival and parsing results. You can also complete the configuration without testing.
WarningMake sure that the Data Source corresponds to a Logstore that contains data. If the logstore has no data, the log parsing test cannot run.
-
Log Sample Selection: The system automatically obtains log samples from the last 7 days by default. You can also select a time manually.
-
SPL Syntax: By default, the parsing syntax configured for the current policy's Parsing Rules is synchronized. To modify the syntax, go to the Standardized rules and datasets tab and edit it.
-
After you obtain the Sample Log, click Parse and Test.
-
Click Complete. You can complete the configuration even if the test has not been run or has failed.
NoteIf the test fails, see What should I do if the log parsing test fails or no data can be parsed? for solutions.
-
-
Enable the policy
Turn on the switch in the Enabling Status column of the target policy to enable the access policy.
ImportantIf you enabled the recommended access policy when purchasing Agentic SOC, the built-in policies for Security Center, Web Application Firewall, Cloud Firewall, and ActionTrail are enabled by default. For more information about how to enable recommended access policies, see Enable access policies for subscription and Enable log access policies for pay-as-you-go.
-
Enable in batches automatically
If you want to integrate logs from multiple Alibaba Cloud native products at once, use the batch integration feature to automatically discover data sources and enable access policies. Perform the following steps:
-
Log on to the console
Access the Security Center console - Agentic SOC - Management - Integration Settings. In the upper-left corner of the page, select the region of your assets: Chinese Mainland or Outside Chinese Mainland.
-
Configure batch integration
Click Batch Associate Settings and configure the settings as described below.
-
Access Settings:
-
Increment Access: All enabled access policies are retained. Only the data sources and policies configured this time are added on top of them.
-
Full Access: All existing integration settings are completely overwritten and replaced. Any policy not selected in the current configuration is disabled.
WarningThis operation overwrites existing configurations and may unexpectedly disable running policies and interrupt log ingestion. Proceed with caution.
-
-
Accessible Account: You can select the current account and the member accounts it manages. For more information about member accounts, see Multi-account management.
-
Alibaba Cloud Services: Select the cloud native products to integrate and their data sources.
NoteTo simplify configuration, Agentic SOC provides recommended access policies. After you click Use Recommended Policy, the system automatically selects the data sources with the highest analysis value for the current cloud product based on best practices, helping you quickly enable data analysis.
-
Auto-Add New Data Sources: Once enabled, logstores created later are automatically included in the collection scope of the current data sources. No manual addition is required.
-
-
Confirm and start log ingestion
After you complete the configuration, click OK. The system automatically performs the following operations:
-
Full integration: Automatically integrates all enabled Logstores in Alibaba Cloud Simple Log Service (SLS) that are associated with the selected cloud product data sources for the selected accounts.
-
Policy activation: Automatically enables the access policies corresponding to the selected data sources.
ImportantIt takes some time to deliver and initialize new access policies. Wait patiently.
-
-
Confirm the enabled status
-
Return to the integration list, select the product to integrate, and click Access Settings in the Actions column.
NoteTo view the access status of member accounts, go to the access policy tab of Multi-account Access Settings and click Multi-account Access in the Actions column of the target data source.
-
View the access status on the access policy list page. If the access status is abnormal, check the status of the related data source. For details, see Check the data source connection status.
-
Add an access policy
For products that support custom access policies, on the list, click Create Access Policy and complete the three steps: access binding, access test, and finish.
-
If Create Access Policy is not displayed on the page, the product does not support custom access policies.
-
The access test confirms log arrival and parsing results. You can also complete the configuration without testing.
-
Associate Data Source
Select Data Source
Field
How to configure
Description
Data Source Name
Dropdown selection
The dropdown options are automatically filtered by the current product.
Data Source Type
Tag display
Displays the data source type and connection health status.
Import Account
Read-only
Displays the integration account, along with the region, Project, and Logstore.
Add Instances
Table
Displays the region, Project, Logstore, and status.
After you switch the data source, the system refreshes the data source attributes, integration account, instance table, and sample logs, and resets the access test status to Not run.
NoteNo available logs are detected for the current data source. Complete data import first and continue the integration after logs reach the Logstore. This message does not affect subsequent steps.
Log Ingestion Method
Select a log ingestion mode from the dropdown list. After you switch the mode, the parsing rule dropdown list is filtered again, and the access test status is reset to Not run.
Log ingestion mode
Label
Description
Ingest and store, storage format: native logs
Recommended
Original fields are complete, which facilitates forensics and troubleshooting. Fields are not unified across sources, so reusing detection rules costs more effort.
Ingest and store, storage format: normalized logs
Standardized at write time
Field semantics are unified, so detection rules and reports can be reused. Field mapping and transformation governance costs more effort.
Ingest only, no storage. Query format: normalized logs
Standardized at query time
Unifies security semantics and controls storage costs. It depends on external pipelines, and query performance and the alert closed-loop are limited.
Important-
Ingest and store: Agentic SOC consumes logs in real time. The storage format can be standardized logs or native logs.
-
Ingest without storage: Agentic SOC only performs query and analysis. The query format supports standardized logs. Multi-account scenarios are not supported.
-
Ingest without storage, query format: native logs is not supported.
Attach Parsing Rule
Parsing rules are filtered in sequence by the vendor and product of the current product, the log ingestion mode, the log format, the range of parsing rules that can be bound to the product, and SPL syntax scenario compatibility rules. If rules are available, the first one is selected by default. If no rule is available, the dropdown list displays "No parsing rules available" and you cannot select one.
After you select a rule, you can view the vendor/product, source, security domain/log structure, structure type, and SPL syntax scenario. Extended field ingestion is displayed only for the standardized structure. Vendor and product are used only to filter and confirm rule ownership and are not input items.
ImportantIf no parsing rule is available, you cannot proceed to the next step.
SPL syntax scenario compatibility matrix
NoteParsing rules are filtered by SPL syntax scenario. The following table lists the compatibility relationships that are currently confirmed. The options available in the console prevail.
SPL syntax scenario
Compatible log ingestion modes
Restrictions
StoreView predefined SPL
Ingest without storage, query format: standardized logs; Ingest and store, storage format: standardized logs
StoreView predefined SPL is a restricted subset of real-time consumption SPL.
Real-time consumption SPL
Ingest and store, storage format: standardized logs
Only guaranteed in the standardized-at-write-time scenario.
-
-
Access test
Includes two checks: log arrival and parsing verification. After you click Run validation, the system checks whether logs are detected for the data source and whether the parsing rule can produce parsing results for sample logs.
-
When the test has not been run, parsing result field values are displayed as
-. -
After parsing verification runs, use the returned check result to determine whether it passed.
-
You can proceed to the finish page even if the test has not been run or has failed.
Example parsing result fields: for standardized logs,
event_time, src_ip, security_domain, log_schema, rule_id; for native logs,__time__, logstore, raw_format, schema, rule_id. -
-
Finish: The finish page displays the data source, data source type, ingestion mode, parsing rule, vendor/product, security domain, log structure, SPL syntax scenario, and test status. If no parsing rule is matched, the parsing rule is displayed as "Not matched".
-
When the test passes, "Access test passed." is displayed.
-
When the test fails, "Access test failed. You can continue troubleshooting later." is displayed.
-
When the test has not been run, "Access test not run. You can test later." is displayed.
Click the button at the bottom of the finish page to return to the policy list or close the drawer (the actual behavior depends on the submission result). You can then view the new access policy in the policy list and confirm whether its access status and enabled status are as expected. To continue troubleshooting, click View dashboard or View detection rules.
-
Manage access policies
In the integration settings of a product, you can view and manage the created access policies.
|
Column |
Description |
|
Data source |
Displays the data source name and data source type tag. Types include Center-side, User-side, and Data collection channel. |
|
Parsing rule |
Displays the name of the parsing rule bound to the policy. |
|
Ingestion mode |
Displays the currently selected log ingestion mode. |
|
Associated security capabilities |
Displays the number of associated security capabilities. Click the number to view details. |
|
Last modified, log activity time |
Displays the time when the policy was last updated and the time when logs were last detected. Displays |
|
Access status, enabled status |
Displays the access status, and uses a switch to show whether the policy is enabled or disabled. |
|
Actions |
Provides entries to view details, preview, and edit. |
An enabled policy cannot be edited directly. Its edit entry is dimmed and the message "Disable the access policy before editing." is displayed.
After you disable the policy, you can edit it. The edit page is the same as the three-step configuration for adding a policy, and the data source, log ingestion mode, and parsing rule are automatically populated.
Integrate third-party logs
Agentic SOC can integrate logs from third-party clouds (Fortinet, Chaitin, Microsoft, Sangfor, Tencent Cloud, Huawei Cloud, Hillstone Networks, Knownsec, Microsoft Azure, and others) and from custom product applications. Perform the following steps:
Integrate third-party cloud product logs
Logs not ingested into Simple Log Service (SLS)
If logs from a third-party cloud (such as Tencent Cloud, Huawei Cloud, or Azure) are not yet ingested into Simple Log Service (SLS), use the data import feature of Agentic SOC to import the logs through channels such as Kafka and S3 (Object Storage Service).
Integration flowchart
Integration steps
-
Create a data source
Create a data source for third-party cloud logs. If you have already created one, skip this step.
-
Access the Security Center console - Agentic SOC - Management - Integration Settings. In the upper-left corner of the page, select the region of your assets: Chinese Mainland or Outside Chinese Mainland.
-
On the Data Source tab, create a data source to receive third-party cloud logs. For details, see Add data source for logs not in SLS.
-
Source Data Source Type: You can choose User Log Service or Agentic SOC Dedicated Collection Channel (recommended). For how to choose, see Data Source type comparison.
-
Add Instances: We recommend that you create a new Logstore for data isolation.
-
-
-
Import data
Follow the instructions in General data import or a specific import document (for example, Ingest log data from Huawei Cloud) to import third-party cloud data into the data source created in Step 1.
-
Configure an access policy
-
Return to the Service Integration tab and set the Service Provider filter to the third-party vendor (for example, Huawei Cloud).
-
Click Access Settings in the Actions column of the target product. On the access policy details page, click Create Access Policy.
-
Bind the data source as described below:
-
Data Source Name: Select the data source created in Step 1.
-
Parsing Rules: We recommend that you select a built-in parsing rule that Agentic SOC provides for third-party clouds (for example, Huawei Cloud - WAF log).
NoteYou can also refer to Standardized rules and datasets to create a custom parsing rule.
-
Log Ingestion Method: Only Ingest and store modes are supported. Ingest only, no storage. Query format: normalized logs is not supported.
-
-
On the Log Parsing page, click Parse and Test. For details, see Test log parsing (optional).
WarningMake sure that the Data Source corresponds to a Logstore that contains data. If the logstore has no data, the log parsing test cannot run.
-
Click Complete to complete the configuration. You can complete the configuration even if the test has not been run or has failed. After that, you can turn on the policy switch on the finish page.
-
Logs already ingested into Simple Log Service (SLS)
If logs from third-party products (such as Fortinet, Chaitin, or Sangfor) have already been collected into an SLS logstore through LoongCollector or other methods, follow the procedure below. For how to ingest data into SLS, see Simple Log Service (SLS) log collection references.
-
Configure the data source
-
Find the product to integrate
-
Access the Security Center console - Agentic SOC - Management - Integration Settings. In the upper-left corner of the page, select the region of your assets: Chinese Mainland or Outside Chinese Mainland.
-
Set the Service Provider filter to the third-party vendor (for example, Fortinet). Select the product to integrate (for example, Web Application Firewall) and click Access Settings on the right.
-
-
Modify the data source
-
Click the data source name associated with the product. The page switches to the Data source tab. Click Edit in the Actions column of the target data source.
-
Click Create Instance and select the Region ID, Project, and Logstore where the third-party product logs are stored.
NoteYou can log on to the Simple Log Service console to view the logstore information of the cloud product.
-
-
-
Enable the built-in access policy
-
Return to the Service Integration tab and open the Access Settings page of the target product again.
-
Click Edit in the Actions column of the target built-in access policy. On the Log Parsing page, click Parse and Test. For details, see Test log parsing (optional).
-
Click Complete to complete the configuration. You can complete the configuration even if the test has not been run or has failed. After that, you can turn on the policy switch on the finish page.
-
Integrate logs from custom product applications
Integration flowchart
-
Add a product
-
Access the Security Center console - Agentic SOC - Management - Integration Settings. In the upper-left corner of the page, select the region of your assets: Chinese Mainland or Outside Chinese Mainland..
-
On the Service Integration tab, in the Multi-cloud Service Access area, click Add Service and enter the Vendor Name and Service Name.
-
-
Add a data source
On the Data Source tab, click Add Data Source. For details, see Data sources. Configure the data source as follows:
-
If the product logs are already collected into Simple Log Service (SLS), set Data Source Type to User Log Service and select the corresponding logstore.
NoteYou can log on to the Simple Log Service console to view the logstore information of the product.
-
If the product logs are not yet collected into Simple Log Service (SLS), configure the data source based on its type as follows:
-
If Data Source Type is Agentic SOC Dedicated Collection Channel (recommended), Agentic SOC creates a dedicated Project (
aliyun-cloudsiem-channel-{Alibaba Cloud account ID}-cn-{RegionID}) and a dedicated Logstore in SLS. -
If Data Source Type is User Log Service, first go to the Simple Log Service console and create the corresponding logstore.
-
-
-
Ingest logs into Simple Log Service (SLS)
After you configure the data source, collect the product logs into the corresponding Logstore in SLS as soon as possible. For details, see Simple Log Service (SLS) log collection references.
-
Add a parsing rule
On the Parsing Rules tab, click Create Custom Rule. For details, see Standardized rules and datasets.
NoteSelect the product added in Step 1 as the vendor and product.
-
Add and enable an access policy
-
Return to the Service Integration tab, find the product added in Step 1, and click Access Settings in its Actions column.
-
On the Integration Settings page, click Create Access Policy and complete the configuration of the Data Source and Standardized Log on the new access policy page. Configure them as follows:
Data Source: Select the data source configured in Step 2.
Parsing Rules: Select the rule configured in Step 3.
Log Ingestion Method: The following three modes are supported: Ingest and store, storage format: native logs, Ingest and store, storage format: normalized logs, and Ingest only, no storage. Query format: normalized logs. For details, see Log ingestion mode comparison.
ImportantIf the data source type is Agentic SOC Dedicated Collection Channel, select an Ingest and store mode. Ingest only, no storage. Query format: normalized logs is not supported.
-
On the Log Parsing page, click Parse and Test. For details, see Test log parsing (optional).
WarningMake sure that the Data Source corresponds to a Logstore that contains data. If the logstore has no data, the log parsing test cannot run.
-
Click Complete to complete the configuration. You can complete the configuration even if the test has not been run or has failed. After that, you can turn on the policy switch on the finish page.
-
Analyze integrated data
After product logs are integrated, you also need to configure threat detection rules so that Agentic SOC can analyze the integrated logs and generate alerts and security events, enabling you to quickly respond to and handle cloud security risks. For details, see Detection rules.
Quotas and limits
-
Ingest without storage mode limit: A dataset (StoreView, associated by a parsing rule) can be bound to at most 5 access policies that use the Ingest only, no storage. Query format: normalized logs mode. Exceeding this limit causes the access policy to fail to be enabled.
-
Multi-account limits:
-
"Ingest only, no storage. Query format: normalized logs" does not support multi-account scenarios. For more information, see Multi-account management.
-
Data sources that belong to member accounts do not support custom access policies.
-
-
Ingestion mode limits: For center-side data sources or alert logs, only the log ingestion modes provided in the console are displayed. Unsupported options cannot be selected.
Native logs are stored by Logstore. The independent quotas and billing rules for native logs are subject to the final product documentation.
Billing
When you use Agentic SOC to ingest logs, the following fees may be incurred, depending on the type of data source you select:
-
Native logs are stored by Logstore. The following table describes the billing entity for each data source type. The independent billing and quota rules for native logs are subject to the final product documentation.
-
For Agentic SOC billing details, see Agentic SOC subscription and Agentic SOC pay-as-you-go.
-
For Simple Log Service (SLS) billing details, see SLS billing overview.
|
Data source type |
Agentic SOC billable items |
SLS billable items |
Notes |
|
Agentic SOC Dedicated Collection Channel |
Note
The preceding fees consume Log Ingestion Traffic. |
Other fees besides log storage and write, such as public network traffic. |
Agentic SOC creates and manages the SLS resources, so logstore storage and write fees are billed by Agentic SOC. |
|
User Log Service |
Log ingestion fees, which consume Log Ingestion Traffic. |
All log-related fees (including log storage and write and public network traffic fees). |
Log resources are all managed by Simple Log Service (SLS), so all log-related fees are billed by SLS. |
|
Security Center Log Service |
Log ingestion fees, which consume Log Ingestion Traffic. |
None |
These are internal logs of Security Center and do not involve SLS fees. |
References
Log ingestion mode comparison
The log ingestion mode determines how logs are processed, the storage format, and the applicable scenarios. Choose a mode based on your log retention and field unification requirements.
|
Dimension |
Ingest and store, storage format: native logs |
Ingest and store, storage format: normalized logs |
Ingest only, no storage. Query format: normalized logs |
|
Processing and storage |
Consumes logs in real time, retains the original fields, and stores logs in the native log format. |
Consumes logs in real time, converts logs to standardized logs, and then stores them. |
Only queries and analyzes logs and does not store log copies. |
|
Advantages and limitations |
Original fields are complete, which facilitates forensics and troubleshooting. Fields are not unified across sources. |
Field semantics are unified, and detection rules and reports can be reused. Field mapping and transformation governance is required. |
Unifies security semantics and controls storage costs. Depends on external pipelines, and query performance and the alert closed-loop are limited. |
|
Storage and billing |
Logs are stored in the native log format. For billing details, see Billing in this topic. |
Logs are stored in the standardized log format. For billing details, see Billing in this topic. |
Log copies are not stored. The storage fees for original logs are borne by the source (for example, SLS). |
|
Multi-account limits |
Subject to actual integration requirements. |
Subject to actual integration requirements. |
Multi-account scenarios are not supported. |
|
Typical scenarios |
You need to retain original fields for forensics, troubleshooting, or native queries. |
You need to reuse detection rules and reports and unify field semantics across sources. |
You need to reduce copy storage and run queries and analysis on source logs. |
Ingest without storage with the query format set to native logs is not supported.
Data Source type comparison
|
Dimension |
User Log Service |
Agentic SOC Agentic SOC Dedicated Collection Channel |
Security Center Log Service |
|
Log storage and management |
You manage your own SLS Projects and Logstores. |
Agentic SOC automatically creates and manages dedicated SLS Projects and Logstores. |
Internal logs generated by Security Center itself, which are not stored in your SLS. |
|
Supported log ingestion modes |
Supports Ingest and store, storage format: native logs, Ingest and store, storage format: normalized logs, and Ingest only, no storage. Query format: normalized logs. Alert logs support only Ingest and store modes. |
Supports Ingest and store, storage format: native logs and Ingest and store, storage format: normalized logs. |
Only Ingest and store modes are supported. |
|
Typical scenarios |
|
|
Analyze alert logs automatically delivered by the business center of cloud security products (such as Cloud Firewall IPS protection alerts and WAF alerts) without manually enabling the product log service. |
Alibaba Cloud product log ingestion to SLS references
-
Web Application Firewall: WAF 3.0 logs.
-
Cloud Firewall: Cloud Firewall logs.
-
Bastionhost: Archive audit logs to SLS.
-
ActionTrail: Platform operation logs.
-
DDoS Protection: Get started with Log Analysis.
-
CDN: Best practices for analyzing CDN real-time logs, Configure real-time log delivery.
-
Dynamic Route for CDN (DCDN): Global Accelerator access logs.
-
API Gateway: API Gateway access logs.
-
Container Service for Kubernetes: Log management.
-
ApsaraDB PolarDB: PolarDB-X 1.0 SQL audit logs, PolarDB-X 2.0 SQL audit logs, Log analysis.
-
ApsaraDB for MongoDB: MongoDB logs.
-
ApsaraDB RDS: RDS SQL audit logs, Use Log Service to collect logs of an ApsaraDB RDS for MySQL instance.
-
Virtual Private Cloud (VPC): VPC flow logs, EIP logs.
-
Server Load Balancer (SLB): ALB access logs, Access logs, Layer 7 access logs for Classic Load Balancer (CLB), Layer 4 second-level monitoring metrics for Classic Load Balancer (CLB).
-
Object Storage Service (OSS): OSS access logs.
-
Apsara File Storage NAS: Log analysis based on SLS.
-
Cloud Config: Configuration Audit Log.
Simple Log Service (SLS) log collection references
-
Logstash: Use Logstash to upload logs.
-
OSS: Import OSS data.
-
Log4j: Collect Log4j logs.
-
Alibaba Cloud log collection agent: LoongCollector (formerly Logtail).
-
Collection method selection: Data collection.
FAQ
-
What should I do if the data source connection status is "Abnormal" or "Not connected"?
This is usually caused by insufficient permissions of the service-linked role, incorrect data source configuration, or an abnormal source logstore. Troubleshoot in the following order:
-
RAM permissions: Check whether the Agentic SOC service-linked role
AliyunServiceRoleForSashas permissions to access the target SLS logstore (at leastAliyunLogReadOnlyAccess). This is the most common cause. -
Configuration information: On the Agentic SOC data source edit page, carefully check whether the SLS region, Project, and Logstore names are exactly correct, without typos or extra spaces.
-
Source logstore status: Log on to the SLS console, confirm that the corresponding Project is not disabled, and that the logstore has the latest data continuously written.
-
-
Why does the access policy fail to be enabled?
The most common cause is that the quota is exceeded: the same dataset (StoreView, associated by a parsing rule) can be bound to at most 5 access policies that use the Ingest only, no storage. Query format: normalized logs mode. Exceeding this limit causes the access policy to fail to be enabled. For solutions, see Access policy fails to be enabled.
-
What should I do if the log parsing test fails or no data can be parsed?
-
Check whether the source logstore contains data: Make sure that new logs have been written to the SLS logstore recently. If the logstore is empty, the test cannot run.
-
Check whether the parsing rule matches: If you configured a custom rule, make sure that the SPL statement can correctly parse the raw log format. You can debug the SPL statement on the query and analysis page in the SLS console.
-