Formula - concat
Easily merge string values using the Nodinite concat
Formula plugin. This page shows how to combine strings from message Content, Context, or the output of other formulas.
π― Designed for business users and integrators β no developer required; you can even use AI to craft expressions.
- β Merge data from any Payload or Context in any Log Event
- β Combine multiple string values into a single result
- β Transform and surface meaningful data in Nodinite Log Views, search filters, and self-service diagnostics
- β Combine with other Formula functions for powerful, layered expressions
What does the concat Formula do?
The concat(Content1, Content2, ...)
Formula function merges two or more string values into a single result. Use it with static text, message bodies, context values, or the results from other Formula functions to create combined data in your views.
How it works: Input β concat β Result
Flow: Multiple input values are concatenated into a single output string.
Examples
Example 1: Concatenate static strings
Input:
No input required (static values only)
Formula:
concat('Formula', 'Plugin')
Result:
FormulaPlugin
Example 2: Concatenate message body with static string
Input:
Message body:
Nod
Formula:
concat(body, 'inite')
Result:
Nodinite
Using body as the first parameter
Example 3: Concatenate body with itself
Input:
Message body:
Nod
Formula:
concat(body, body)
Result:
NodNod
Concatenating body with itself
Example 4: Concatenate static value with context value
Input:
Context key id
:
ination
Formula:
concat('Imag', context('id'))
Result:
Imagination
Concatenating a static value with context
Example 5: Use a formula function as a parameter
Input:
Context key id
:
{ "Id": 2 }
Formula:
concat(jsonpath('Id', context('id')), 'A')
Result:
2A
Using a formula function as the first parameter
Example 6 β Advanced nested functions
Input from message body
gmt
Input from context key id
utc
Formula Expression
concat(touppercase(regex('gmt|utc', body)), touppercase(substring(0, 3, context('id'))))
Result
GMTUTC
Example: Combining values from both body and context using nested formulas.
Example: Context value used in nested formula.
Features
- Merge single or multiple string values from any Content into one result
- Works with static text, message body, context, or results from other Formula functions
- Combine with other Formula functions for powerful, layered expressions
- Use in Log Views for filtering, grouping, and self-service diagnostics
Important
The concat plugin loads the entire message into RAM. Only use this function on small messages to avoid performance issues.
How to use the concat Formula
- Select Formula as the expression type plugin.
- Enter your concat expression in the 'Expression' text area.
- Provide string values as parameters (for example, static text, the message body, a context value, or another formula result).
Syntax
- Concatenate static strings:
concat('String1', 'String2')
- Concatenate with message body:
concat(body, 'String')
- Concatenate with message context:
concat('String', context('MessageContextKey'))
- Concatenate with another formula:
concat(SomeOtherNestedFormulaFunction(Content), 'String')
Next Step
How to Add or manage Search Fields
How to Add or manage Log Views
Related Topics
- Expression Type Plugins are used in Search Fields
- What are Search Fields?
- What are Search Field Expressions?
- What are Message Types?
- What are Log Views?