Message Context Key search field expression type plugin
Use this plugin to extract values from named context properties.
The Nodinite Message Context Key Search Field Expression Type plugin can be used to find one unique value from named Context Property for logged messages.
A Logged message comes from a Log Event that is part of the Logging feature of Nodinite, and the Search Fields are further used within self-service enabled Log Views for your business.
Quick example
Let's get you started with the following simple demonstration example valid for this search field plugin. For other and more advanced examples please scroll down on this page to the Examples section.
Input | 1st Expression | Result |
---|---|---|
|
|
Nodinite |
Any content | Named Context Property | Unique value |
Features
- Extract single value from named Context property
Other Context Property related plugins
Since there is no styling you may need to use other plugins to get the result you seek. Review other Nodinite Context Property related search field expression type plugins:
- RegEx on Message Context
- RegEx on Message Context with capturing groups
- XPath on Message Context
- Formula - Advanced options using nested expressions.
How to use
To extract values from Context Properties you must first configure the Search Field, in this example case; The Product of the year name:
- Select expression type plugin
- Enter the name to get the content from named Context property
- Finalize remaining steps including selection of Message Types and optional re-index operation (Add or manage Search Field)
Once a Search Field is configured, values are extracted either during normal processing or from user initiated re-index operations. Extracted values are persisted and stored for as long as the days to keep events property on the Message Type is configured.
Test Expression
You can test an expression when configuring a Search Field in the 'Test Expression' tab
- Enter an appropriate payload in the 'Message Body' tab
- Select the 'Message Context' expression type plugin
Here's an example selecting the 'Message Context' expression type plugin. - Enter name of Context property to get the content (as is)
- Review result/output, rewrite the code in step 3 until you get the data you seek
The actual result (values) are extracted by the Logging Service and then presented together with the evaluated processing state and the number of unique matches.
Valid expression with state output, unique values and total count.
If the expression is either invalid or does not match any data, then the following output is presented:
Here's an example with an invalid expression, which yields no result.
Examples
Basic example
To extract content from named Context property 'ProductOfTheYear
' simply enter the name. This configuration yields the value Nodinite
Data is returned as is
Content (data)
Nodinite
Named context property
ProductOfTheYear
Next Step
How to Add or manage Search Fields
How to Add or manage Log Views
Related
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?