Calculates a entropy measure from a string of characters.

ParameterTypeRequiredDefault ValueDescription
asstringoptional[a]_shannonentropy The output name of the field to set.
field[b]stringrequired  The name of the input field.

[a] Optional parameters use their default value unless explicitly set.

[b] The parameter name field can be omitted.

Hide omitted argument names for this function

Show omitted argument names for this function

Shows how to calculate a shannon entropy value for the string in a field. An input event with the field dns_name with the value example.com results in the field entropy having the rounded value 3.095795.

logscale
entropy := shannonEntropy(dns_name)