# ENDS_WITH

The ENDS_WITH function checks if a given string ends with a specified suffix.

## Syntax

`ENDS_WITH(str, suffix)`

### Parameters

#### str

This is the string expression that you want to check.

#### suffix

The string expression that will be checked if it is the ending of the first string.

## Examples


```esql
FROM employees
| KEEP last_name
| EVAL ln_E = ENDS_WITH(last_name, "d")
```

```esql
FROM employees
| KEEP first_name
| EVAL fn_E = ENDS_WITH(first_name, "a")
```
