Scalar functions
Hash functions
Function Name | Description |
---|---|
hash_md5() | Returns a MD5 hash value for the input value. |
hash_sha1() | Returns a sha1 hash value for the input value. |
hash_sha256() | Returns a SHA256 hash value for the input value. |
hash_sha512() | Returns a SHA512 hash value for the input value. |
hash_md5()
Returns an MD5 hash value for the input value.
Arguments
- source: The value to be hashed.
Returns
The MD5 hash value of the given scalar, encoded as a hex string (a string of characters, each two of which represent a single Hex number between 0 and 255).
Example
hash_md5(source)
['sample-http-logs']
| project md5_hash_value = hash_md5(content_type)
- Result
{
"md5_hash_value": "b980a9c041dbd33d5893fad65d33284b"
}
hash_sha1()
Returns a SHA1 hash value for the input value.
Arguments
- source: The value to be hashed.
Returns
The sha1 hash value of the given scalar, encoded as a hex string
Example
hash_sha1(source)
['sample-http-logs']
| project sha1_hash_value = hash_sha1(content_type)
- Result
{
"sha1_hash_value": "9f9af029585ba014e07cd3910ca976cf56160616"
}
hash_sha256()
Returns a SHA256 hash value for the input value.
Arguments
- source: The value to be hashed.
Returns
The sha256 hash value of the given scalar, encoded as a hex string (a string of characters, each two of which represent a single Hex number between 0 and 255).
Example
hash_sha256(source)
['sample-http-logs']
| project sha256_hash_value = hash_sha256(content_type)
- Result
{
"sha256_hash_value": "bb4770ff4ac5b7d2be41a088cb27d8bcaad53b574b6f27941e8e48e9e10fc25a"
}
hash_sha512()
Returns a SHA512 hash value for the input value.
Arguments
- source: The value to be hashed.
Returns
The sha512 hash value of the given scalar, encoded as a hex string (a string of characters, each two of which represent a single Hex number between 0 and 511).
Example
hash_sha512(source)
['sample-http-logs']
| project sha512_hash_value = hash_sha512(status)
- Result
{
"sha512_hash_value": "0878a61b503dd5a9fe9ea3545d6d3bd41c3b50a47f3594cb8bbab3e47558d68fc8fcc409cd0831e91afc4e609ef9da84e0696c50354ad86b25f2609efef6a834"
}
['sample-http-logs']
| project sha512_hash_value = hash_sha512(content_type)
- Result
{
"sha512_hash_value": "95c6eacdd41170b129c3c287cfe088d4fafea34e371422b94eb78b9653a89d4132af33ef39dd6b3d80e18c33b21ae167ec9e9c2d820860689c647ffb725498c4"
}