Calculates a entropy measure from a string of characters.

ParameterTypeRequiredDefaultDescription
asstringfalse_shannonentropyThe output name of the field to set.
fieldstringtrue The name of the input field. [a]

[a] If an argument name is not given, field is the default argument.

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)