# LOG() Function

### Description

Returns the logarithm of a numeric expression.

**Aliases:** `LOG2`, `LOG10`

### Syntax

```sql
LOG(value_or_base, [value])
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _value\_or\_base_ | The value or base argument | Numeric | Yes |
| _value_ | Input value | Numeric | No |

### Example

```sql
SELECT
    LOG(10, salary)
FROM
    rippling.employee.Employee
LIMIT
    5;
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/log

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
