Log Service SQL provides functions and operators for aggregation, string manipulation, date and time processing, JSON parsing, and more.
Overview
-
SLS Query Skill for intelligent log query and analysis: Use natural language to query and analyze SLS log data in a local AI Agent.
|
Category |
Description |
Common functions |
|
Computes a single result from a set of input values. |
||
|
Finds, replaces, extracts, concatenates, and formats text data. |
||
|
Converts, truncates, and aggregates date and time values. |
||
|
Extracts, transforms, and queries data from JSON objects and arrays. |
||
|
Matches, extracts, and replaces text using regular expressions. |
||
|
Compares time-series data across different time periods. |
||
|
Accesses, filters, and transforms array elements. |
||
|
Operates on key-value pairs (maps). |
||
|
Rounds, generates random numbers, and performs trigonometric calculations. |
||
|
Analyzes data distributions with correlation, regression, and probability functions. |
||
|
Converts values from one data type to another. |
||
|
Computes aggregations or rankings over a sliding window of rows. |
||
|
Parses and processes IP addresses. |
||
|
Extracts components from URLs. |
||
|
Approximates distinct counts, percentiles, and histograms for large datasets. |
||
|
Operates on binary data. |
||
|
Performs bitwise operations on integers. |
||
|
Operates on spatial geometry objects. |
||
|
Performs geospatial analysis and calculations. |
||
|
Creates and manipulates color representations. |
||
|
Estimates cardinality on large datasets with minimal memory. |
||
|
Compares values across types (double, bigint, varchar, timestamp, date) and returns a boolean. |
||
|
Combines multiple boolean expressions to control logical flow. |
||
|
Converts data sizes or time intervals between different units. |
||
|
Tracks sequential user actions for conversion funnel analysis. |
||
|
Defines inline functions for higher-order array operations in SQL or SPL. |
||
|
Returns different values based on a specified condition. |