---
title: "Nodinite Log Event: Parts, Delivery, and Processing Pipeline"
description: "What a Nodinite Log Event is: its three parts (details, payload, context), how to deliver it through the Log API or the Pickup Service, what the Logging Service does with it, and where to find the field and value reference."
---

# Log Event

A **Log Event** is the JSON object that every logging solution sends to :Nodinite:, whether it is one of the out-of-the-box [Log Agents][] or your own code. It records one business or technical event, optionally with the message itself, so you get end-to-end logging across any platform.

This page explains the parts of a Log Event, how to deliver it, and what happens after it arrives. The Reference Pages section at the end lists where each field and value is documented.

## :fa-signs-post: Choose Your Path

| You want to… | Go to |
| --- | --- |
| :fa-code: Build a Log Event field by field | The [Reference Pages](#reference-pages), starting with [JSON Log Event][] |
| :fa-truck-fast: Choose between REST and asynchronous delivery | [Deliver Log Events](#delivery) |
| :fa-gears: Find out why a logged event isn't in a [Log View][Log Views] yet | [What Happens After You Log an Event](#what-happens-after-you-log-an-event), and [where Log Events wait][Logging Service Waiting] while the [Logging Service][] is stopped |
| :fa-key: Require a token from every sender | [Protect the Log API with OAuth 2.0 and Entra ID][Log API OAuth] |
| :fa-user-shield: Check the rights of the service that stores the events | The [Log API][] [accounts and rights][Log API Accounts] |

## :fa-cubes: The Three Parts of a Log Event {#three-parts}

A Log Event has mandatory **details** and an optional **payload** and **context**.

<div class="mermaid">
graph LR
    subgraph "Log Event"
        subgraph "Details (mandatory)"
            roED[fal:fa-bolt Event Details </br>LogDateTime = 2018-05-03 13:37:00+02:00</br> EndPointName = https://api.nodinite.com/... </br> OriginalMessageTypeName = Invoice </br>...]
        end
        subgraph "Payload (optional)"
            ro[fal:fa-envelope Message</br>Body = base64EncodedMessage]
        end
        subgraph "Context (optional)"
            roKey[fal:fa-key Key Values </br>InvoiceNo = 123 </br>CorrelationId = 456 </br>...]
        end
    end
    style roED fill:#2678BD
    style ro fill:#E47528
    style roKey fill:#3F827B
</div>

*The three parts of a Log Event: details (blue, mandatory), payload (orange, optional), and context (green, optional).*  

|Part|Required|What it holds|Reference|
|---|---|---|---|
|<span id="details"></span>Details|✅ Yes|Generic information about the event, WHEN and HOW: `LogDateTime` (when), the [Endpoint][Endpoints] (where), `OriginalMessageTypeName` (which format or schema the message follows), event direction, status, and processing details. :Nodinite: also calls these *Additional field values*.|[Details][JSON Log Event - Details]|
|<span id="payload"></span>Payload|❌ No|The business transaction data itself, WHAT: usually XML, JSON, flat files (EDI/X12), or zip files, as one or more base64 encoded bodies. The [Message Type][Message Types] identifies the format, and the [Logging Service][] extracts [Search Field][Search Fields] values from it.|[Payload][JSON Log Event - Payload]|
|<span id="context"></span>Context|❌ No|Key/value pairs with extra metadata: business data such as `InvoiceId`, `CustomerNumber`, or `OrderNumber`, and technical data such as `CorrelationId`, `SessionId`, or `RetryCount`. [Search Fields][] can extract values from the context too, and [Context Options][] keys change how :Nodinite: processes the event.|[Context][JSON Log Event - Context]|

## :fa-truck-fast: Deliver Log Events {#delivery}

Log Events reach :Nodinite: in three ways:

* **:Nodinite: [Log Agents][]** collect events from the platform and push them into :Nodinite: for you, for example the [Azure Logic Apps][Logic Apps Agent] agent and the [IBM Integration Bus and ACE logging][IBM IIB Logging] of the IBM MQ agent. You don't write any Log Events yourself.
* **Synchronous**: your own code posts the Log Event directly to the REST-based [Log API][]; see [Log using REST][].
* **Asynchronous** (recommended for your own code): write the Log Event to an intermediate store, such as a queue, a folder, or a database table, and let the :Nodinite: [Pickup Log Events Service Logging Agent][Pickup Service] fetch it and pass it on to the [Log API][]; see [Asynchronous Logging][].

<div class="mermaid">
graph LR
    subgraph "Logging solutions"
        roMessageBroker[fal:fa-archive Nodinite Log Agents </br> Logic Apps, IBM IIB/ACE, BizTalk, Mule, ...]
        roLogSink("fal:fa-bolt Custom Logging Solution") --> roId1["fal:fa-list Queue </br>fal:fa-folder Folder </br>..."]
    end
    subgraph "Web Server"
        roLogAPI(fal:fa-cloud-arrow-down Log API)
        roPS(fal:fa-truck-pickup Pickup Service)--> roLogAPI
        roId1 -.Log Event.-x roPS
        roLogSink --> | Log Event | roLogAPI
        roMessageBroker --> | Log Event | roLogAPI
    end
    style roMessageBroker fill:#2678BD
    style roLogSink fill:#9E59BB
    style roId1 fill:#E47528
    style roPS fill:#3F827B
    style roLogAPI fill:#93d16d
</div>

*:Nodinite: Log Agents (blue) and custom code (purple) post directly to the Log API (green); [asynchronous][Asynchronous Logging] custom logging goes through an intermediate store (orange) that the Pickup Service (teal) reads.*  

### Why Asynchronous Logging Is Recommended

* Your logging solutions don't depend on the [Log API][]; reboot or update :Nodinite: whenever you like.
* You don't need to write your own retry logic.
* The [Pickup Service][] manages delivery and concurrency, so the [Log API][] is never overloaded.
* The decoupled architecture lets you change either side without touching the other.

## :fa-gears: What Happens After You Log an Event {#what-happens-after-you-log-an-event}

<span id="fa-gears-what-happens-after-you-log-an-event"></span>
The [Logging Service][] processes every Log Event in four steps, which turn a raw integration event into business-friendly, searchable data without custom queries or database knowledge.

![A Log Event with the context value OrderNumber ORD-10259 is posted to the Log API in Scalar and answered 200 OK, then found in the Log View Contoso: Orders by its O2C - Order ID, processed, with the Search Field values from the context and the body, animated walkthrough (7.13)][LogEventFromApiGif]  
*Animated walkthrough: one Log Event from the [Log API][] to a [Log View][Log Views]. The Log API answers 200 OK and stores the event unprocessed; the Logging Service resolves its Message Type and extracts the [Search Field][Search Fields] values, and the event is searchable as Processed.*  

1. In the Log API's Scalar page, open **POST /LogAPI/api/LogEvent** and select **Test Request**.
2. Paste a Log Event: the context value `OrderNumber` = `ORD-10259`, the Message Type `O2C.Order.Received/1.0`, and a base64 encoded body. Send it.
3. **200 OK**: the event is received and stored, still unprocessed.
4. In the Log View *Contoso: Orders*, search on **O2C - Order ID** = `ORD-10259`. The event is **Processed**, found by the value the Logging Service extracted.
5. Select **Show Details**: the **Search Field Values** tab shows O2C - Order ID from the context and Contoso: Order Total from the body.

### Step 1: Event Received (Unprocessed)

* The Log Event arrives through the [Log API][] (REST) or the [Pickup Service][] (asynchronous).
* It is stored in a [Log Database][Log Databases] with the status *Unprocessed*.
* It waits for the [Logging Service][], which picks up new events every 30 seconds.

### Step 2: Message Type Determination

The [Logging Service][] determines the [Message Type][Message Types], which identifies the format or schema of the message, from:

* the `OriginalMessageTypeName` field of the Log Event, if provided;
* the XML payload (namespace + root node);
* a schema property in the JSON payload;
* the UNH segment of an EDIFACT payload, formatted by the [EDIMessageTypeParseString][] [System Parameter][System Parameters];
* a [Context Options][] override, such as [ExtendedProperties/1.0#MessageTypeName][Context Options - MessageTypeName].

An unprocessed Log Event that still has no Message Type after [MissingEventsDays][] days is deleted by the cleanup run of the [Logging Service][].

For Microsoft BizTalk Server, flat file and EDI messages get a post-processing step: the [Logging Service][] looks up the schema in the BizTalk Server configuration database to resolve the proper Message Type, and an [Endpoint][Endpoints] can set a Message Type for passthru interchanges; see [Message Types for BizTalk Server][Message Types - BizTalk non-XML].

### Step 3: Search Field Extraction

* The [Logging Service][] decodes the body with the resolved [character encoding][Character Encoding]: the [ExtendedProperties/1.0#Encoding][Context Options - Encoding] context property first, then an encoding named in the XML declaration of the body, then the **Character encoding** of the Endpoint, then the one of the Message Type (default UTF-8 without BOM) :new7.11:
* The [Logging Service][] doesn't process a body larger than [MessageProcessingMaxBodySize][] (MB).
* It removes context properties whose names match the [ContextPropertiesFilters][] System Parameter; to keep a property but hide its value in [Log Views][], use [ProtectedContextValues][].
* It finds the [Search Field Expressions][] bound to the Message Type, and each expression extracts values from the payload or the context:
  * [XPath][] extracts from XML payloads.
  * [JSON Path][] extracts from JSON payloads.
  * **RegEx** extracts from EDI and text formats.
  * [Message Context Key][] extracts from context properties.
  * **Formula** combines and transforms values; see [Formula][].
* The extracted values become searchable in [Log Views][].
* [Search Fields][] and built-in fields, such as the Application interchange id, also drive the **Group by** feature of [Log Views][Log View Group by]: grouping correlates the events of one business transaction, which is how a [BPM][BPMs] ties events from different systems together.
* Add or change a Search Field later and [re-index][Re-index] to extract values from Log Events that are already logged.

### Step 4: Event Processed

* The status changes from *Unprocessed* to *Processed*.
* The Message Type and the Search Field values are indexed.
* The [Logging Service][] creates or updates the [Log Status Code][Log Status Codes] definitions for the event's status, as set by [LogStatusCodeAutoSyncPolicy][].
* The event appears in [Log Views][] with full search, so business users find it by familiar terms such as Order Number or Customer ID.

### Example Flow

```mermaid
graph LR
    A[XML Invoice arrives] --> B[Message Type: Invoice/1.0]
    B --> C[Extract InvoiceNumber via XPath]
    B --> D[Extract CustomerID via XPath]
    B --> E[Extract Amount via XPath]
    C --> F[Searchable in Log Views]
    D --> F
    E --> F
    F --> G[Business users search:<br/>'InvoiceNumber = 12345']
    style A fill:#2678BD
    style B fill:#9E59BB
    style C fill:#E47528
    style D fill:#E47528
    style E fill:#E47528
    style F fill:#93d16d
    style G fill:#93d16d
```

*An XML invoice (blue) gets its Message Type (purple), three XPath expressions extract values (orange), and the values become searchable (green).*  

>[!TIP]
>See [Message Types][] for how a Message Type binds a format to its expressions, and [Search Fields][] for the expression plugins.

## :fa-sitemap: Repository Auto-Mapping {#repository-auto-mapping}

Log Events can populate the [Repository Model][] automatically: context keys create and bind [Integrations][], [Services][], [Systems][], [Transport Contracts][], and positions in [BPMs][] while you log, and the [Endpoints][] and [Message Types][] come from the Log Event details. This moves know-how from developers to business and IT operations teams and removes most manual administration.

>[!IMPORTANT]
>You must enable the [AllowRepositoryAutomapping][] [System Parameter][System Parameters] for the [Logging Service][] to honor the [Repository Model][] data in a Log Event. The Logging Service reads a changed value within about 5 minutes. The Contract keys in a [Repository Binding][] also need [UseContracts][].

Use the [Repository Binding][] context key for the structure, [BPM Binding][] to position Services in a BPM, and [Context Options][] for the individual keys.

## :fa-table: Reference Pages {#reference-pages}

The [Log API][] exposes these models; each page below is the single reference for its part.

|Page|What you find there|
|---|---|
|[JSON Log Event][]|Every JSON field of a Log Event: type, required, meaning, example; minimal and full examples|
|[Context Options][]|Every `ExtendedProperties/1.0#…` context key and what it changes during processing|
|[Repository Binding][]|The Repository Binding JSON, service relations, and the individual (legacy) repository keys|
|[BPM Binding][]|Positioning a Service in a BPM: domains, steps, service relations, connector styles|
|[Endpoint Directions][]|Values for the `EndPointDirection` field|
|[Endpoint Types][]|Values for the `EndPointTypeId` field|
|[Event Directions][]|Values for the `EventDirection` field and how Log Views combine them|
|[Character Encoding][] :new7.11:|How :Nodinite: decides the character encoding of a message body|
|[Log using REST][]|Sending Log Events over REST: base URL, authentication, Scalar and Swagger, code examples|

## :fa-hand-point-right: Next Steps

* :fa-code: [JSON Log Event][]  
* :fa-cloud-arrow-down: [Log using REST][]  
* :fa-truck-pickup: [Asynchronous Logging][]  
* :fa-tags: [Context Options][]  

## :fa-link-horizontal: Related Topics

* :fa-compass: [Plan Your Logging with Nodinite][Logging Strategy]  
* :fa-cloud-arrow-down: [Log API][]  
* :fa-file: [Message Types][]  
* :fa-magnifying-glass-plus: [Search Fields][]  
* :fa-hard-drive: [Logging Service][]  
* :fa-database: [Log Databases][]  
* :fa-search: [Log Views][]  
* :fa-box-archive: [Log Agents][]  
* :fa-sitemap: [Repository Model][]  
* :fa-sliders: [System Parameters][]  

[AllowRepositoryAutomapping]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/AllowRepositoryAutomapping.md
[Asynchronous Logging]:{ndr}/Core%20Services/Log%20API/Features/Asynchronous%20Logging.md
[BPM Binding]:{ndr}/Core%20Services/Log%20Event/Features/BPM%20Binding.md
[BPMs]:{ndr}/Repository%20Model/BPMs/Overview.md
[Character Encoding]:{ndr}/Core%20Services/Log%20Event/Features/Character%20Encoding.md
[Context Options]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md
[Context Options - Encoding]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md#encoding
[Context Options - MessageTypeName]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md#messagetypename
[ContextPropertiesFilters]:{ndr}&Administration&5.%20Settings&5.%20System%20Parameters&ContextPropertiesFilters.md
[EDIMessageTypeParseString]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/EDIMessageTypeParseString.md
[Endpoint Directions]:{ndr}/Core%20Services/Log%20Event/Features/Endpoint%20Directions.md
[Endpoint Types]:{ndr}/Core%20Services/Log%20Event/Features/Endpoint%20Types.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Event Directions]:{ndr}/Core%20Services/Log%20Event/Features/Event%20Directions.md
[Formula]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Overview.md
[IBM IIB Logging]:{ndr}/Logging%20and%20Monitoring/IBM%20MQ/Features/IBM%20Integration%20Bus%20Logging.md
[Integrations]:{ndr}/Repository%20Model/Integrations/Overview.md
[JSON Log Event]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md
[JSON Log Event - Context]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#context
[JSON Log Event - Details]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#details
[JSON Log Event - Payload]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#payload
[JSON Path]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/JSON%20Path.md
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log API Accounts]:{ndr}/Core%20Services/Log%20API/Getting%20started/1.%20Prerequisites.md#fa-user-shield-accounts-and-rights-at-a-glance
[Log API OAuth]:{ndr}/Core%20Services/Log%20API/Scenarios/Protect%20the%20Log%20API%20with%20OAuth%202.0%20and%20Entra%20ID.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Status Codes]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Status%20Code.md
[Log using REST]:{ndr}/Core%20Services/Log%20API/Features/Log%20using%20REST.md
[Log View Group by]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/Log%20View%20Grouping%20Tab.md#fa-layer-group-group-by-options
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[LogEventFromApiGif]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/LogEvent_FromApiToLogView.gif
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Logging Service Waiting]:{ndr}/Core%20Services/Logging%20Service/Troubleshooting/Overview.md#where-do-log-events-wait-while-the-logging-service-is-stopped
[Logging Strategy]:{ndr}/Getting%20Started/2.%20Log/Logging%20Strategy/Overview.md
[Logic Apps Agent]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Overview.md
[LogStatusCodeAutoSyncPolicy]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogStatusCodeAutoSyncPolicy.md
[Message Context Key]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Message%20Context%20Key.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Message Types - BizTalk non-XML]:{ndr}/Repository%20Model/Message%20Types/Overview.md#non-xml-content
[MessageProcessingMaxBodySize]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/MessageProcessingMaxBodySize.md
[MissingEventsDays]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/MissingEventsDays.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[ProtectedContextValues]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/ProtectedContextValues.md
[Re-index]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md#re-index-historical-data
[Repository Binding]:{ndr}/Core%20Services/Log%20Event/Features/Repository%20Binding.md
[Repository Model]:{ndr}/Repository%20Model/Overview.md
[Search Field Expressions]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Overview.md
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[Services]:{ndr}/Repository%20Model/Services/Overview.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Systems]:{ndr}/Repository%20Model/Systems/Overview.md
[Transport Contracts]:{ndr}/Repository%20Model/Services/Overview.md#fa-microchip-transport-contracts-the-heart-of-service-definitions
[UseContracts]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/UseContracts.md
[XPath]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/XPath.md