elasticsearch/docs/reference/query-languages/esql/_snippets/functions/sha1.md
Colleen McGinnis b7e3a1e14b
[docs] Migrate docs from AsciiDoc to Markdown (#123507)
* delete asciidoc files

* add migrated files

* fix errors

* Disable docs tests

* Clarify release notes page titles

* Revert "Clarify release notes page titles"

This reverts commit 8be688648d.

* Comment out edternal URI images

* Clean up query languages landing pages, link to conceptual docs

* Add .md to url

* Fixes inference processor nesting.

---------

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
Co-authored-by: Liam Thompson <leemthompo@gmail.com>
Co-authored-by: Martijn Laarman <Mpdreamz@gmail.com>
Co-authored-by: István Zoltán Szabó <szabosteve@gmail.com>
2025-02-27 17:56:14 +01:00

761 B

SHA1 [esql-sha1]

Syntax

:::{image} ../../../../../images/sha1.svg :alt: Embedded :class: text-center :::

Parameters

input
Input to hash.

Description

Computes the SHA1 hash of the input.

Supported types

input result
keyword keyword
text keyword

Example

FROM sample_data
| WHERE message != "Connection error"
| EVAL sha1 = sha1(message)
| KEEP message, sha1;
message:keyword sha1:keyword
Connected to 10.1.0.1 42b85531a79088036a17759db7d2de292b92f57f
Connected to 10.1.0.2 d30db445da2e9237c9718d0c7e4fb7cbbe9c2cb4
Connected to 10.1.0.3 2733848d943809f0b10cad3e980763e88afb9853
Disconnected 771e05f27b99fd59f638f41a7a4e977b1d4691fe