Formula

Formula Plugin

Formula plugin helps you to extract any value from any given message by applying solely one of the listed functions or by using a combination of them(Nested Functions) on your content.

Formula plugin supports powerful concept, (Multilevel Nested Functions) which is the key feature of this plugin.However,it is too early to consider it right away ,So we will demonstrate this as we move further with our examples (Test Expressions).

Expression Types are used in Search Fields.

How to Configure Search Field Expression.

How to Add or manage Search Field.


Content

  • body
  • context

Formula plugin have different types of functions based on the number of its parameters :

  • Function(Content)
  • Function(1st Expression, 2nd Expression,Content)
  • Function(1st Expression, 2nd Expression,Content)
  • Function(1st Expression,2nd Exp..,...,Content)
Function Description
base64decode(Content) Decode the provided data into a human readable format
base64encode(Content) Encode text to base64
toUpperCase(Content) Convert any given text to UpperCase
toLowerCase(Content) Convert any given text to LowerCase
startsWith(Expression,Content) Check if text starts with certain word/letter(s)
endsWith(Expression,Content) Check if text ends with certain word/letter
notEqual(Expression,Content) Check the inequality of two given texts
equal(Expression,Content) Check the equality of two given texts
jsonpath(Expression,Content) Used to extract value from JSON body structure
xpath(Expression,Content) Retrieve values from XML body
regex(Expression,Content) Use Regular Expression as it is implemented everywhere to extract values
substring(1st Expression,2nd Expression,Content) Extract specific text from any given statement/text
replace(1st Expression,2nd Expression,Content) Used to replace old text/letter with a new text.
csv(1st Expression,2nd Expression,...,Content) Extract data from any valid CSV file