---
title: "JSON Log Event Field Reference: Details, Payload, Context, and Examples"
description: "Field reference for the JSON formatted Nodinite Log Event: every details field with type, required flag, example, and meaning, the Body and Bodies payload fields, the Context collection, and minimal and full JSON examples."
---

# JSON formatted Log Event

This page lists every field of a **JSON formatted** [Log Event][]: the details, the payload (`Body` or `Bodies`), and the `Context` collection. For what the three parts are and what <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> does with them, see [Log Event][]. To send the JSON, post it to the [Log API][] ([Log using REST][]) or write it to a queue, folder, or table for the [Pickup Log Events Service Logging Agent][Pickup Service] ([Asynchronous Logging][], recommended).

To extract values from a Log Event into a [Search Field][Search Fields], use the [Formula][] functions [body][], [context][], and [field][].

![The Minimal and the Full Example posted to the Log API in Scalar, then both events in a Log View, animated walkthrough (7.12)][1]  
*Animated walkthrough: in the [Log API][]'s Scalar reference, **Test Request** on `POST /LogAPI/api/LogEvent` sends the [Minimal Example](#minimal-example) and then the [Full Example](#full-example); each answers **200 OK**. A [Log View][Log Views] shows both events: the Minimal one without Log Text, the Full one with *File OK*. The walkthrough sends the current time as `LogDateTime`, so the events fall inside the search.*  

## <i class="fal fa-table" aria-hidden="true"></i> Reference

<h3 id="details"><i class="fal fa-bolt" aria-hidden="true"></i> Details</h3>

The first seven fields are mandatory. All other fields are optional: set them to `null` or omit them. The more details you provide, the better the experience for <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> users.

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Agents][] that create Log Events, such as the BizTalk and Logic Apps agents, set most of these fields for you, and logging frameworks such as [Serilog][] let you control what is logged. A custom logging solution sets them itself.

The `number` fields `LogAgentValueId`, `LogStatus`, `SequenceNo`, `EventNumber` and `ProcessingTime` also accept the number as a string, for example `"-1337"`. The three enum fields `EndPointDirection`, `EndPointTypeId` and `EventDirection` don't: send them as JSON numbers.

|Field|Required|Type|Example|Meaning|
|---|---|---|---|---|
|<span id="logagentvalueid"></span>`LogAgentValueId`|✅ Yes|`number`|`42`|Who sent the data: the [Log Agent][Log Agents]|
|<span id="endpointname"></span>`EndPointName`|✅ Yes|`string`|`"INT101: Receive Hello World Log Events"`|Name of the [Endpoint][Endpoints] transport|
|<span id="endpointuri"></span>`EndPointUri`|✅ Yes|`string`|`"C:\\DropArea\\in"`|[URI][]<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> of the [Endpoint][Endpoints] transport|
|<span id="endpointdirection"></span>[`EndPointDirection`][Endpoint Directions]|✅ Yes|`number`|`0`|Direction of the [Endpoint][Endpoints] transport; see [Endpoint Directions][]. If you leave it out, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 7 stores `0` (Receive).|
|<span id="endpointtypeid"></span>[`EndPointTypeId`][Endpoint Types]|✅ Yes|`number`|`60`|Type of the [Endpoint][Endpoints] transport; see [Endpoint Types][]|
|<span id="originalmessagetypename"></span>`OriginalMessageTypeName`|✅ Yes|`string`|`"https://nodinite.com/Customers/1.0#Batch"`|Name of the [Message Type][Message Types]. It decides which [Search Field Expressions][] run on the event (see the [processing pipeline][Log Event Pipeline]).|
|<span id="logdatetime"></span>`LogDateTime`|✅ Yes|`string`|`"2018-05-03T13:37:00.123Z"`|When the event happened at the client, with a time zone; see the note below the table|
|<span id="eventdirection"></span>[`EventDirection`][Event Directions]|No|`number`|`17`|Where in the process the event happened, e.g. `17` External Incoming (before the receive port); see [Event Directions][]|
|<span id="processinguser"></span>`ProcessingUser`|No|`string`|`"DOMAIN\\user"`|Identity that logged the event|
|<span id="sequenceno"></span>`SequenceNo`|No|`number`|`0`|Your own sequence number; reset it on each logical interchange|
|<span id="eventnumber"></span>`EventNumber`|No|`number`|`0`|Your own event number; in batched operations, unique for each event in the batch|
|<span id="logtext"></span>`LogText`|No|`string`|`"File successfully generated"`|Your log text|
|<span id="applicationinterchangeid"></span>`ApplicationInterchangeId`|No|`string`|`""`|Id for the application scope|
|<span id="localinterchangeid"></span>`LocalInterchangeId`|No|`guid`|`null`|Id for the local scope|
|<span id="logstatus"></span>[`LogStatus`][Log Status Codes]|No|`number`|`0`|Status code, as defined for each [Log Agent][Log Agents]; see [Log Status Codes][]. [LogStatusCodeAutoSyncPolicy][] controls whether incoming events create or update the definitions.|
|<span id="processname"></span>`ProcessName`|No|`string`|`"My customer process"`|Name of the process|
|<span id="processingmachinename"></span>`ProcessingMachineName`|No|`string`|`"localhost"`|Name of the server where the Log Event originated|
|<span id="processingmodulename"></span>`ProcessingModuleName`|No|`string`|`"INT101-HelloHappyCustomers-Application"`|Name of the module|
|<span id="processingmoduletype"></span>`ProcessingModuleType`|No|`string`|`"FilePickup"`|Type of the module, such as exe, dll, or service|
|<span id="serviceinstanceactivityid"></span>`ServiceInstanceActivityId`|No|`guid`|`null`|Id for the run scope|
|<span id="processingtime"></span>`ProcessingTime`|No|`number`|`80`|Flow execution time so far, in milliseconds|

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> also calls the details fields *Additional field values*.

#### LogDateTime and Time Zones

Include the time zone in `LogDateTime`: `Z` for UTC, or an offset such as `+02:00` or `-01:00`, e.g. `"2017-04-10T08:44:22.309+02:00"` (+02:00 against UTC). Without a time zone, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> assumes UTC. <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> always stores `LogDateTime` as UTC and shows each user the correct local time.

#### GUID Values

Send a [guid](https://en.wikipedia.org/wiki/Universally_unique_identifier)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> without braces, e.g. `"064205E2-F7CF-43A6-B514-4B55536C2B67"`, or `null`.

<h3 id="payload"><i class="fal fa-envelope" aria-hidden="true"></i> Payload</h3>

The payload is optional. It is a single message (the default, `Body`) or several messages, such as email attachments (`Bodies`). Each body is a [base64 encoded](https://www.base64encode.org/)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup> string or file. Omit the field when you have no payload to log. [Character Encoding][] explains how <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> decodes the text of a body.

|Field|Required|Type|Example|Meaning|
|---|---|---|---|---|
|<span id="body"></span>`Body`|No|`string`|`"SGVsbG8gV29ybGQ="`|One base64 encoded payload, or `null`. The [Logging Service][] doesn't process a body larger than [MessageProcessingMaxBodySize][] (MB).|
|<span id="bodies"></span>`Bodies`|No|`array` of `string`|`["SGVsbG8=", "V29ybGQ="]`|Several base64 encoded payloads. You can send `Body` and `Bodies` together: <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> stores `Body` first, then every non-empty entry of `Bodies`. Each body gets its own **View message body** entry in the [Log View][Log Views]'s **Action** menu (**View message body**, **View message body #1**, ...).|

<h3 id="context"><i class="fal fa-key" aria-hidden="true"></i> Context</h3>

The context is a collection of key/value pairs with string values. Send whatever you need to build self-service [Log Views][] for your [Users][]: [Search Field Expressions][] can extract values from the context too. Omit the field when you have no context properties to log. [ContextPropertiesFilters][] removes context properties by name (for example, passwords) and [ProtectedContextValues][] masks their values in [Log Views][].

|Field|Required|Type|Example|Meaning|
|---|---|---|---|---|
|`Context`|No|`object`|`{"Key1": "ABC", "Key2": "123"}`|Key/value pairs; every value is a JSON string. A number, `true` or an object as a value is refused: send `"42"`, not `42`.|

Fragment of a Log Event, showing only the `Context` field:

```json
{
  "Context": {
    "CorrelationId": "064205E2-F7CF-43A6-B514-4B55536C2B67",
    "FileName": "\\\\server\\share\\NodiniteHappyCustomerList.txt"
  }
}
```

Keys that start with `ExtendedProperties/1.0#` are [Context Options][]: they change how the [Logging Service][] processes the event, such as overriding the Message Type or the encoding. With [Repository Binding][], the context also populates the [Repository Model][] while the event is processed; this works only when the [AllowRepositoryAutomapping][] [System Parameter][System Parameters] is set to `true`.

## <i class="fal fa-code" aria-hidden="true"></i> Examples

<h3 id="minimal-example">Minimal Example</h3>

An incoming Log Event with only the mandatory fields (the Endpoint is file-based in this example):

```json
{
  "LogAgentValueId": 42,
  "EndPointName": "INT101: Receive Hello World Log Events",
  "EndPointUri": "C:\\temp\\in",
  "EndPointDirection": 0,
  "EndPointTypeId": 60,
  "OriginalMessageTypeName": "Hello.World.File/1.0",
  "LogDateTime": "2017-11-22T08:44:22.309Z"
}
```

An event without `Body` and without `Context` is stored and shows in a [Log View][Log Views] with its Endpoint and Message Type, but the [Logging Service][] doesn't process it: no [Search Field][Search Fields] values, no [Context Options][], no [Repository Binding][].

<h3 id="full-example">Full Example</h3>

A Log Event with every field set, mandatory and optional:

```json
{
  "LogAgentValueId": 42,
  "EndPointName": "INT101: Receive Hello World Log Events",
  "EndPointUri": "C:\\temp\\in",
  "EndPointDirection": 0,
  "EndPointTypeId": 60,
  "OriginalMessageTypeName": "Hello.World.File/1.0",
  "LogDateTime": "2017-11-22T08:44:22.309Z",
  "EventDirection": 17,
  "ProcessingUser": "DOMAIN\\user",
  "SequenceNo": 0,
  "EventNumber": 0,
  "LogText": "File OK",
  "ApplicationInterchangeId": "",
  "LocalInterchangeId": null,
  "LogStatus": 0,
  "ProcessName": "My Process",
  "ProcessingMachineName": "localhost",
  "ProcessingModuleName": "INT101-HelloWorld-Application",
  "ProcessingModuleType": "FilePickup",
  "ServiceInstanceActivityId": null,
  "ProcessingTime": 80,
  "Body": "SGVsbG8gV29ybGQ=",
  "Context": {
    "CorrelationId": "064205E2-F7CF-43A6-B514-4B55536C2B67",
    "FileName": "Hello.txt"
  }
}
```

![The Full Example's details in a Log View: the details fields, the Context Values tab and the decoded Body, animated walkthrough (7.12)][2]  
*Animated walkthrough: **Show Details** on the Full Example in a [Log View][Log Views] shows Log Text, Endpoint, Message Type and when it happened. **Context Values (2)** lists `CorrelationId` and `FileName` as sent, and **Action** → **View message body** shows the Body `SGVsbG8gV29ybGQ=` decoded: *Hello World* (11 bytes).*  

<h3 id="bodies-example">Multiple Bodies Example</h3>

The minimal Log Event with two payloads in `Bodies` instead of `Body`:

```json
{
  "LogAgentValueId": 42,
  "EndPointName": "INT101: Receive Hello World Log Events",
  "EndPointUri": "C:\\temp\\in",
  "EndPointDirection": 0,
  "EndPointTypeId": 60,
  "OriginalMessageTypeName": "Hello.World.File/1.0",
  "LogDateTime": "2017-11-22T08:44:22.309Z",
  "Bodies": ["SGVsbG8=", "V29ybGQ="]
}
```

![The Multiple Bodies Example posted in Scalar, then each body opened from the Log View's Action menu, animated walkthrough (7.12)][3]  
*Animated walkthrough: the event with two `Bodies` gets two entries in the [Log View][Log Views]'s **Action** menu: **View message body** shows *Hello*, and **View message body #1** shows *World*.*  

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-cloud-arrow-down" aria-hidden="true"></i> [Log using REST][]  
* <i class="fal fa-truck-pickup" aria-hidden="true"></i> [Asynchronous Logging][]  
* <i class="fal fa-tags" aria-hidden="true"></i> [Context Options][]  
* <i class="fal fa-sitemap" aria-hidden="true"></i> [Repository Binding][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-bolt" aria-hidden="true"></i> [Log Event][]  
* <i class="fal fa-diamond-turn-right" aria-hidden="true"></i> [Endpoint Directions][]  
* <i class="fal fa-plug" aria-hidden="true"></i> [Endpoint Types][]  
* <i class="fal fa-arrows-left-right" aria-hidden="true"></i> [Event Directions][]  
* <i class="fal fa-language" aria-hidden="true"></i> [Character Encoding][]  
* <i class="fal fa-flag" aria-hidden="true"></i> [Log Status Codes][]  
* <i class="fal fa-sign-in-alt" aria-hidden="true"></i> [Endpoints][]  
* <i class="fal fa-file" aria-hidden="true"></i> [Message Types][]  
* <i class="fal fa-box-archive" aria-hidden="true"></i> [Log Agents][]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Logging Service][]  
* <i class="fal fa-search" aria-hidden="true"></i> [Log Views][]  
* <i class="fal fa-database" aria-hidden="true"></i> [Log Databases][]  
* <i class="fal fa-cloud-arrow-down" aria-hidden="true"></i> [Log API][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/JsonLogEvent_MinimalAndFull.gif
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/JsonLogEvent_FullDetails.gif
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/JsonLogEvent_MultipleBodies.gif

[AllowRepositoryAutomapping]:https://docs.nodinite.com/administration/settings/system-parameters/allowrepositoryautomapping/
[Asynchronous Logging]:https://docs.nodinite.com/core-services/log-api/features/asynchronous-logging/
[body]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/formula/source/body/
[Character Encoding]:https://docs.nodinite.com/core-services/log-event/features/character-encoding/
[context]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/formula/source/context/
[Context Options]:https://docs.nodinite.com/core-services/log-event/features/context-options/
[ContextPropertiesFilters]:https://docs.nodinite.com/administration/settings/system-parameters/contextpropertiesfilters/
[Endpoint Directions]:https://docs.nodinite.com/core-services/log-event/features/endpoint-directions/
[Endpoint Types]:https://docs.nodinite.com/core-services/log-event/features/endpoint-types/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Event Directions]:https://docs.nodinite.com/core-services/log-event/features/event-directions/
[field]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/formula/source/field/
[Formula]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/formula/overview/
[Log Agents]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-agent/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Log Event Pipeline]:https://docs.nodinite.com/core-services/log-event/overview/#what-happens-after-you-log-an-event
[Log Status Codes]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-status-code/
[Log using REST]:https://docs.nodinite.com/core-services/log-api/features/log-using-rest/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[LogStatusCodeAutoSyncPolicy]:https://docs.nodinite.com/administration/settings/system-parameters/logstatuscodeautosyncpolicy/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[MessageProcessingMaxBodySize]:https://docs.nodinite.com/administration/settings/system-parameters/messageprocessingmaxbodysize/
[Pickup Service]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/overview/
[ProtectedContextValues]:https://docs.nodinite.com/administration/settings/system-parameters/protectedcontextvalues/
[Repository Binding]:https://docs.nodinite.com/core-services/log-event/features/repository-binding/
[Repository Model]:https://docs.nodinite.com/repository-model/overview/
[Search Field Expressions]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/overview/
[Search Fields]:https://docs.nodinite.com/administration/log-management/search-fields/features/what-is-a-search-field/
[Serilog]:https://docs.nodinite.com/logging-and-monitoring/serilog/overview/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[URI]:https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
[Users]:https://docs.nodinite.com/administration/access-management/users/features/what-is-a-user/