Intelligent log inspection
Intelligent log inspection periodically analyzes a target Logstore, proactively detecting new log patterns, anomalous distributions, metric changes, and potential risks. Use it for scenarios such as application error monitoring, access log analysis, business status tracking, performance change detection, and audit operations.
Log alerting is designed for continuous monitoring of known issues. Intelligent log inspection is designed for discovering changes that have not been predefined. You can use both simultaneously.
Advantages
Intelligent log inspection converts massive log volumes into reviewable problem signals through periodic analysis, automatic drill-down, and continuous tracking:
Proactive detection of undefined changes — Continuously identifies new log patterns, distribution shifts, metric spikes, and long-tail anomalies without requiring preconfigured error codes, keywords, or fixed thresholds.
Designed for massive log analysis — Performs log clustering, baseline comparison, and dimension drill-down on the data side using overall distributions as the basis, reducing the risk of sampling omission and local sample misjudgment.
Automatic problem scope convergence — The Agent dynamically selects follow-up queries based on analysis results, progressively pinpointing from anomaly signals to specific service, version, region, and user dimensions while preserving comparison baselines and query evidence.
Continuous tracking with reduced noise — Updates problem status on each cycle, distinguishing new, worsening, recurring, and recovered issues. Uses confirmed business semantics and known noise to optimize subsequent inspections, notifying only when noteworthy changes occur.
Knowledge injection and multi-source analysis — Supplements business rules, domain expertise, and troubleshooting methods through Skills. Describes entity relationships and field semantics through UModel, enabling the Agent to correlate logs, metrics, traces, and other multi-source data for comprehensive analysis.
Prerequisites
Before you begin, make sure that the following conditions are met:
You have query permissions for the target Project and Logstore.
Indexing is enabled for the Logstore, and you can query logs normally.
The logs contain fields suitable for analysis, such as
status,request_time,request_uri,region, orversion.Comparable data exists within the log time range. A newly created Logstore or one with insufficient data volume may not form an effective baseline.
If you need to receive notifications, prepare a contact, bot, or Webhook as the Notification Recipient.
Intelligent log inspection is powered by STAROps. The page clearly indicates that usage incurs fees. Set the execution cycle based on actual needs.
This guide uses the charts-demo/charts-demo Logstore in the China (Shanghai) region as an example. The sample logs are Nginx access logs containing fields such as status, request_time, and request_uri.
Enter intelligent log inspection
Log on to the Simple Log Service console and navigate to the target Project.
In the Logstore list on the left side, select the target Logstore.
On the query and analysis page, confirm that logs can be queried normally within the current time range.
In the query results area, switch to the Intelligent Inspection tab.
After entering the tab, the page displays existing inspection tasks for the current Logstore. Task cards show the task name, creator, last update time, and recent execution records. Do not directly modify tasks created by others. To try the feature, create an independent task with a clear test identifier.
Create an inspection task
In the intelligent inspection task list, click Create Task.
Enter a task name. Include both the business scope and log type, for example, "Payment Gateway Nginx Log Inspection".
Set the schedule. The page supports hourly execution with a specified minute within each hour.
Select the digital employee to execute the task.
Enter the inspection requirements. For initial creation, you can write only the most important goals. The system generates an initial plan based on log characteristics.
(Optional) Select a contact, bot, or Webhook. You can create the task without a Notification Recipient and configure one later.
Review the fee notice and click Create Now.
After creation, the new task appears at the top of the list. A newly created task shows "No execution records yet", which is expected.
First run and view inspection results
Click a task card to open the STAROps long-running task details page in a new browser tab.
The details page provides three core tabs:
Conversation — View the task planning process, supplement business semantics, or submit new drill-down requirements.
Executions — View periodic execution records or manually trigger an execution on demand.
Reports — View reports generated after an inspection completes.
When a new task has not yet completed its first execution, the counts for Executions and Reports are 0. After the first execution completes, navigate to the corresponding tabs to view analysis scope, query evidence, anomaly dimensions, findings, and uncertainty statements.
Clicking Run Now triggers an additional inspection run, which may incur fees. If you only want to verify the task configuration, you do not need to click it.
Start the first inspection from an empty task
For first-time use, start with an empty task — one with no execution history, no reports, and no existing inspection plan. At this point, the page typically shows "Executions 0" and "Reports 0", and the Subtask Planning card on the right displays a play button.
When an empty task runs for the first time, the system does more than query logs once. It automatically completes the following initialization:
Reads the region, Project, Logstore, execution cycle, and supplementary requirements configured in the task.
Identifies log fields and data characteristics to generate an initial Source Profile.
Creates and validates the inspection plan.
Executes the first round of deterministic checks and anomaly drill-down.
Generates the first inspection report as the comparison baseline for subsequent periodic inspections.
Manually run an empty task
If the task does not start automatically after creation, click the play icon in the Subtask Planning area on the right side, or click Run Now on the subtask.
The system displays a confirmation dialog: "Are you sure you want to run this subtask now?" with a note that confirming will create and open a new execution session. After verifying the task and data scope, click Run Now.
Running now triggers an actual intelligent inspection run. If the page indicates fees will be incurred, confirm the fees and data scope first.
Wait for the first execution to complete
After you click Run Now, the execution session opens on the right side of the page. The first run needs to establish the Profile and inspection plan, so it typically takes longer than subsequent periodic executions.
During execution, you can see stages such as "Establishing Profile and InspectionPlan", "Executing deterministic checks", "Investigating anomalies and drilling down", and "Generating inspection report". Keep the current task in an active state. You do not need to click the play button repeatedly.
If no results appear for an extended period, check the execution session for failure messages or query errors, then verify that the region, Project, Logstore, indexing, and query permissions are correct.
View execution records
Click Executions at the top of the page.
Scheduled runs appear in the execution list with start time, completion status, and run summary. For manually triggered runs, you can view real-time progress in the execution session on the right side.
After a record appears in the execution list, click it to review that run. If the list does not yet show a record, this does not affect reports that have already been generated. Navigate to the Reports tab directly to confirm outputs.
The Executions tab is useful for troubleshooting whether a task started, whether it completed, and where an execution was interrupted. It is not the final conclusions page.
View inspection reports
Click Reports at the top of the page.
In the report list on the left, expand the month and date directories to select the inspection report you want to view.
Open the report details. Focus on the inspection window, overall conclusion, anomaly findings, evidence, and follow-up recommendations.
The report directory may not refresh immediately. Try switching tabs or refreshing the task page, then expand the month and date directories on the Reports tab. If the execution session explicitly failed, resolve the failure cause and rerun before checking reports.
Modify a task
Modify the task name
On the task details page, click More in the upper-right corner.
Select Settings.
Modify the name in the Long-running Task Name field.
Click outside the input field to save.
Refresh the page and confirm the page title displays the new name.
The settings panel also displays the task ID, creation time, trigger method, and Notification Recipient. The task ID can be used for troubleshooting. Do not modify or concatenate it arbitrarily.
Supplement inspection requirements
After the first execution generates an inspection plan, you can continue describing requirements on the Conversation tab to have STAROps adjust the subsequent inspection plan. For example:
Supplementary inspection requirements: treat /healthz as health check traffic;
also focus on upstream_response_time,
and whether anomalies are concentrated on specific source addresses or User-Agents.After sending, wait for STAROps to return the plan adjustment results, then verify that subsequent executions include the new check items.
When a new task has not yet completed its first execution, there is no inspection plan to modify. At this point, STAROps may request additional information such as Project, Logstore, fields, and execution frequency. Wait for the first execution to complete before submitting plan adjustment requirements.
How to read an inspection report
After a report is generated, review the following items in order:
Analysis scope — Verify that the current window, comparison window, and actual query scope match expectations.
Inspection plan — Check which metrics, fields, and log patterns were actually inspected in this cycle.
Problem conclusions — Determine whether new anomalies, worsening issues, recurring problems, or scope expansion were detected.
Data evidence — Identify which log queries, clustering results, or dimension drill-down results support the conclusions.
Impact scope — Determine whether problems are concentrated on specific URIs, status codes, source addresses, versions, or other dimensions.
Uncertainty — When data is insufficient, baselines are not comparable, or fields are missing, the report explains what cannot currently be confirmed.
Metric changes do not necessarily indicate a failure. For example, an increase in slow-endpoint traffic share pushes up the overall p90, but individual endpoint performance may not have degraded. Combine dimension drill-down results to determine whether a change represents performance degradation or traffic composition change.
Report example and reading order
Read reports in the following order:
Confirm scope first — Check Project, Logstore, Region, inspection window, and comparison window to avoid treating incorrect data sources as business conclusions.
Review overall conclusion — Determine whether the status is "normal", "needs attention", or "anomalous", and confirm whether immediate action is required.
Compare key changes — Focus on total request volume, error rate, 5xx count, and request_time p50, p90, p99 differences compared to the previous hour and the same period yesterday.
Review key findings and evidence — Confirm which status, request_uri, request_method, source addresses, or User-Agents concentrate anomalies, and verify query windows and sample sizes.
Act on follow-up items — Convert items that need continuous tracking, application-side confirmation, or alerting configuration into specific owners and deadlines.
The first report generated from the empty task in this example shows:
Inspection status is "normal".
HTTP 5xx error rate in the current window is 0.39% (99 occurrences), decreasing compared to the previous hour and the same period yesterday.
request_time p50, p90, p99 remain consistent across all three windows.
5xx errors are not concentrated on a single URI or Method. The report recommends continuing to track the 500/501 ratio and long-tail changes.
These conclusions represent only the current inspection window. Combine multiple consecutive reports to determine trends. Do not draw conclusions from a single result alone.
Report content is AI-generated and suitable for assisting problem discovery and narrowing the troubleshooting scope. For production operations such as changes, scaling, or circuit breaking, combine Raw Logs, monitoring metrics, and business context for manual review.
Notification configuration
The inspection cycle and notification frequency are separate concerns. A task can execute hourly, but normal results do not need hourly notifications.
Send notifications only in the following situations:
A new high-risk problem is discovered.
An existing problem has significantly worsened.
A recovered problem recurs.
The impact scope has significantly expanded.
Manual confirmation of business semantics or remediation approach is needed.
If no Notification Recipient was selected during creation, you can navigate to notification management from the task settings page and add a contact, bot, or Webhook later.
Use custom Skills to improve inspection quality
For log scenarios with well-defined business semantics, specialized fields, or established troubleshooting practices, you can create custom Skills to provide team knowledge to the digital employee executing the inspection. This improves the accuracy, consistency, and reviewability of inspection results.
Include the following content in custom Skills:
Field and status semantics — Define the meaning of business error codes, status fields, versions, regions, tenants, and user identifiers.
Normal behavior and known noise — Define health checks, stress testing traffic, bot requests, scheduled tasks, and other issues that do not require escalation, along with their applicable scope.
Anomaly detection methods — Specify key metrics for comparison, baseline windows, clustering fields, and anomaly dimensions.
Drill-down troubleshooting procedures — Codify commonly used query statements, diagnostic sequences, correlation conditions, and root cause confirmation methods as standard steps.
Reporting and evidence requirements — Specify the time ranges, comparison data, query evidence, uncertainty statements, and follow-up actions that reports must include.
Custom Skills in STAROps are written in Markdown. Skill design can include reference materials in a references/ directory and helper scripts in a scripts/ directory, in addition to the SKILL.md instructions. After creation, no installation is required. You can associate the skill with the digital employee that executes log inspection in the usage scope settings.
Create a draft first and enable Use Draft only for the testing digital employee. Run a manual inspection to verify field understanding, query scope, and report results. After confirming accuracy, publish the official version for all associated digital employees.
Entry point: STAROps console > Skills > Custom > create a custom Skill.
For detailed instructions on creating custom Skills, see Skill Center.
After a custom Skill is created, it is visible and mountable by all users under the Alibaba Cloud account. Before creating or publishing a Skill, verify that its content does not contain account credentials, personal information, or internal addresses.
Continuous optimization suggestions
After the first run, confirm that the data scope, field identification, and baseline are correct.
Communicate business error codes, field meanings, and normal behavior to the inspection Agent.
Mark health checks, stress testing, bot requests, and other known noise, specifying their applicable scope.
Supplement root cause and remediation experience for real problems so subsequent inspections can reference them.
Set notifications to trigger on problems only, avoiding repeated disruptions to on-call personnel during normal cycles.
After changes to log structure, version fields, or business goals, re-verify the inspection plan.
FAQ
Why does a new task show "No execution records yet"?
The task was just created and has not reached its scheduled execution time. Wait for the next scheduled time. If needed, click Run Now after understanding the fee implications.
Why did the first inspection not find any problems?
The current window may not have significant changes. Alternatively, the log volume may be insufficient, the historical window may not be comparable, or key fields may not be indexed. Check the data scope and uncertainty statements in the report first.
How do I reduce repetitive notifications?
Set notification conditions to new problems, worsening issues, recurring problems, or significantly expanded impact scope. Retain reports for unchanged problems but do not send notifications for every cycle.
How do I reduce known noise?
Specify noise content, judgment criteria, and applicable scope in the inspection requirements. For example, state that /healthz is a health check, or that a specific bot account only performs authorized operations during specified time periods. Do not write only "ignore this problem", as it may inadvertently suppress other real anomalies.
When do modified inspection requirements take effect?
Plan adjustments typically apply to subsequent inspections. After submitting modification requirements, confirm that STAROps has completed the plan update, then verify in the next run that new check items are in effect.