Splunk® Data Stream Processor

DSP Function Reference

On April 3, 2023, Splunk Data Stream Processor will reach its end of sale, and will reach its end of life on February 28, 2025. If you are an existing DSP customer, please reach out to your account team for more information.
This documentation does not apply to the most recent version of Splunk® Data Stream Processor. For documentation on the most recent version, go to the latest release.

Cryptographic

Cryptographic functions return hashes in bytes, so you need to convert your bytes to a Base64-encoded string to send your data to a Splunk Enterprise index. See the base64_encode scalar function.

md5

This function computes and returns the MD5 hash of a byte value X. Because this function takes bytes as its input, first use the to_bytes conversion function to convert your string into a byte string.

Function Input
bytes
Function Output
bytes

DSL example:

md5(bytes);

sha1

This function computes returns the secure hash of a byte value X based on the FIPS compliant SHA-1 hash function. Because this function takes bytes as its input, first use the to_bytes conversion function to convert your string into a byte string.

Function Input
bytes
Function Output
bytes

DSL example:

sha1(bytes);

sha256

This function computes and returns the secure hash of a byte value X based on the FIPS compliant SHA-256 hash function. Because this function takes bytes as its input, first use the to_bytes conversion function to convert your string into a byte string.

Function Input
bytes
Function Output
bytes

DSL example:

sha256(bytes);

sha512

This function computes and returns the secure hash of a byte value X based on the FIPS compliant SHA-512 hash function. Because this function takes bytes as its input, first use the to_bytes conversion function to convert your string into a byte string.

Function Input
bytes
Function Output
bytes

DSL example:

sha512(bytes);
Last modified on 31 October, 2019
Conversion   Date and Time

This documentation applies to the following versions of Splunk® Data Stream Processor: 1.0.0


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters