﻿---
title: ES|QL LOG10 function
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/3016/reference/query-languages/esql/functions-operators/math-functions/log10
products:
  - Elasticsearch
---

# ES|QL LOG10 function
## Syntax

![Embedded](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/query-languages/esql/images/functions/log10.svg)


## Parameters

<definitions>
  <definition term="number">
    Numeric expression. If `null`, the function returns `null`.
  </definition>
</definitions>


## Description

Returns the logarithm of a value to base 10. The input can be any numeric value, the return value is always a double.  Logs of 0 and negative numbers return `null` as well as a warning.

## Supported types


| number        | result |
|---------------|--------|
| double        | double |
| integer       | double |
| long          | double |
| unsigned_long | double |


## Example

```esql
ROW d = 1000.0
| EVAL s = LOG10(d)
```


| d: double | s:double |
|-----------|----------|
| 1000.0    | 3.0      |