- 2 minutes to read

Formula - Context

The context formula is a powerful tool in Nodinite that lets you extract specific values from the context part of a logged message — such as HTTP headers, tracked properties, or custom metadata.

✅ Use it in Search Fields to filter or analyze logs more effectively ✅ Ideal for finding correlation IDs, custom headers, or context properties from Logic Apps, BizTalk, or any custom integration ✅ Boost troubleshooting speed with targeted context extraction

🎯 Design Note: The context() function provides access to the key-value metadata section of a Log Event.


What does the context formula do?

The context Formula lets you extract a single value from the key-value context section of a Nodinite Log Event. This is particularly useful when you need to expose or search against metadata that isn’t part of the message body — such as:

  • HTTP headers (e.g., X-Correlation-Id)
  • Logic Apps tracked properties
  • BizTalk context properties
  • Custom log metadata from your applications
graph LR A["Input: Context Key-Value"] --> B["context('key')"] B --> C["Result: Value"]

Examples

Each example below demonstrates what the context contains, the formula expression used, and what gets extracted.

Example 1: Correlation ID

Input

Correlation Id = demo001

Formula Expression

context('Correlation Id')

Result

demo001

Example 2: Custom Header Value

Input

CustomHeader = Nodinite-Integration

Formula Expression

context('CustomHeader')

Result

Nodinite-Integration

Context Example

Visual representation of context key-value extraction.


Features

  • Extracts metadata without touching the message body
  • Works across multiple technologies and integration platforms
  • Enables smarter filtering and diagnostics in your log views
  • Helps enforce data governance by surfacing key context data

Important

This plugin loads the entire message into RAM. For best performance, use it only on small messages.


How to use the context formula

Syntax

context('YourContextKey')

YourContextKey - The exact name of the key in the Log Event context


Next step