---
title: Nodinite Log API Troubleshooting & FAQ – Solutions, Support, and Best Practices
description: Comprehensive FAQ and troubleshooting guide for the Nodinite Log API. Find solutions to common issues, configuration tips, supported protocols, and guidance for logging business transactions and events.
---

# Log API FAQ and Troubleshooting guide

Unlock the full potential of your <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log API][] with this comprehensive FAQ and troubleshooting guide. Here you'll find solutions to common problems, configuration tips, and best practices for logging business transactions and events.

* ✅ Fast solutions to common Log API errors and configuration issues  
* ✅ Supported protocols and flexible integration options  
* ✅ Guidance for logging business transactions and events  
* ✅ Direct contact details for expert support  

![Scalar for the Log API: a Log Event without LogDateTime sent to POST /LogAPI/api/LogEvent/Validate gets 400 Bad Request naming the field; with LogDateTime added the answer is 200 OK with Status 0, animated walkthrough (7.12)][4]  
*Animated walkthrough: check a [Log Event][] with **Validate** before you send it. The first try misses LogDateTime and gets `400 Bad Request` with the field named; the fixed event gets `200 OK` and `Status: 0`. See [How do I check a Log Event before I send it?](#how-do-i-check-a-log-event-before-i-send-it)*  

## What IIS App Pool settings does the LogAPI require

None that you set by hand. In <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 the installation CLI creates the Log API IIS web site and its application pool from the values in the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Portal: the port and service account under [Step 4: Servers › Core platform services][Servers step], and the TLS certificate under [Core host Configuration][Portal Core Host TLS]. To change them, change the Portal values and [update][Update] the environment. If someone has changed the settings directly in IIS, restore them with [IIS Authentication settings][]: the Log API uses Anonymous Authentication and a named service account.  

## I'm getting a GRANT EXECUTE Error

You are most likely missing some SQL access rights for the Log API service account. Review the [SQL rights in the Prerequisites][SQL Rights], and add the account to the [LogServiceUsers][] [System Parameter][System Parameters] so it also gets access to new [Log Databases][].  

The error often shows up right after a Log Database split when the Log API runs as its own account: the [Logging Service][] grants access on the new Log Database only to the accounts in [LogServiceUsers][], so a Log API account that isn't listed (and isn't `sysadmin`) can't write there. Add it, and grant it the roles in [LogAccessRoles][] on the Log Databases created since then; see [Accounts and Rights at a Glance][Prerequisites Accounts].  

## Cannot read configuration file due to insufficient permissions

If you encounter a '[Cannot read configuration file due to insufficient permissions][IISConfigurationFile]', follow the linked guide to resolve file permission issues.  

## Does the Log API support Swagger?

Yes. Open [Swagger][Swagger] at the root of the Log API web site, for example `https://nodinite.contoso.com:40002/swagger`. It lists every operation of the RESTful API with its models, and lets you send test requests.  

![Swagger with the LogEvent group expanded: four POST operations for Log Events, batches and validation, and three GET operations for Endpoint Types, Endpoint Direction and Event Direction (7.12)][2]  
*Swagger lists the operations to post and validate [Log Events][] and batches, and to read the valid [Endpoint Types][], [Endpoint Directions][], and [Event Directions][].*  

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Swagger may be removed in a future version. Use Scalar for new work.</p></div>
</aside>

## Does the Log API support Scalar?

Yes. Open Scalar at `https://nodinite.contoso.com:40002/scalar`. Besides browsing operations and sending test requests, Scalar generates code snippets in many languages for each operation, such as the [Log Event][] post. Add authentication yourself when the Log API is protected.

![Scalar showing POST /LogAPI/api/LogEvent with a generated code snippet (7.12)][3]  
*Scalar shows a sample Log Event payload, a code snippet, and the responses for each status code.*  

## What is the Log API base URL?

In <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7, each environment's Log API is its own IIS web site with its own port, which is set in the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> Portal ([Servers step][]). The base URL ends in `/LogAPI/`, for example `https://nodinite.contoso.com:40002/LogAPI/`, and a Log Event is posted to `https://nodinite.contoso.com:40002/LogAPI/api/LogEvent`. Scalar and Swagger are at the root of the site, without `/LogAPI/`. See [Find the base URL][Base URL].

## Why do I get 401 Unauthorized from the Log API?

**Enable Authentication** is checked for the Log API in the Portal, so every request needs an OAuth 2.0 bearer token. Request the token with the client credentials grant and the scope `api://<logapi-client-id>/.default`. Check that the Log API **Audiences** contain the plain logApi Application (client) ID, and that logApi issues version 2 tokens: a token with the issuer `https://sts.windows.net/...` is a version 1 token and is rejected. In the [Pickup Service][], check **Protected** on the **Destination** tab. See [Protect the Log API with OAuth 2.0 and Entra ID][Protect Log API].

## Can I still log using WCF?

No. The WCF endpoints are not available in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7. Use [REST][Log using REST] or the [Pickup Service][]. See [Logging using the WCF Log API][Log using WCF] for a migration table.

## How do I check a Log Event before I send it?

Post it to `api/LogEvent/Validate` (or `api/LogEvent/Batch/Validate` for a batch). The Log API runs the same checks as a real post and stores nothing.

* **`200 OK`** with `Status: 0` and `ErrorMessage: null`: the event is valid. Post it to `api/LogEvent`.
* **`400 Bad Request`** with `Status: 1`: the answer names each field that failed and why, for example *The LogDateTime field is required*. Fix the event and validate again.

Validate works while the [Logging Service][] is stopped, because the Log API doesn't need it to check or store events.

1. Open Scalar for the Log API and pick **POST /LogAPI/api/LogEvent/Validate**.
1. Click **Test Request** and paste your Log Event.
1. Click **Send** and read the answer.
1. Fix any field the answer names, and send again until you get `200 OK`.

## What kind of data can I send using the Log API?

The primary purpose is logging **Business Transactions**. With <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>, you can provide self-service access to business-critical data with role-based access for your stakeholders. Apply smart filters (restrictions) to avoid potentially sensitive data from messages being revealed. Always log data for a specific business or compliance reason.

The fields are described in [JSON Log Event][]:

* Event - Generic information about the event (like time, message type name and endpoint) - WHEN, HOW.
  * Payload - The business transaction with data, usually XML, JSON, flatfile like EDI/X12 or zip file - WHAT.
  * Context Properties - Key value based collection of arbitrary data - (for example InvoiceId and CorrelationId) - WHAT.
    * With the powerful <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Context Options][], you can control the behaviour of how <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> processes events.

<div class="mermaid">
graph TD
    subgraph "Event"
        subgraph "Details"
            roED[fal:fa-bolt Event Details </br>LogDateTime = 2018-05-03 13:37:00+02:00</br> EndPoint = https://api.nodinite.com/... </br> MessageType=Invoice </br>...]
        end
        subgraph "Payload"
            ro[fal:fa-envelope Message</br>base64EncodedMessage]
        end
        subgraph "Context Properties"
            roKey[fal:fa-key Key Values </br>InvoiceNo = 123 </br>CorrelationId=456 </br>...]
        end
    end
</div>

*Illustration: Log Event structure with details, payload, and context properties in Nodinite.*  

Even though <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> manages large messages (we have seen at least 5.5 GB payloads in real-world customer environments), the [Log API][] has its limitations due to being an API. If you need large messaging support, contact our support for guidance on how to properly manage your specific use case.  

## Which System Parameters affect the Log API?

The Log API reads only the [SqlServer][] System Parameter, to find the SQL Server that hosts the databases. Parameters such as [ContextPropertiesFilters][], [MessageProcessingMaxBodySize][], and [MissingEventsDays][] change what happens to your Log Events after the Log API has stored them; the [Logging Service][] reads them. See [What happens after the Log API accepts an event][What Happens After].

## What protocols are supported?

The Log API is a REST API over HTTPS. WCF is not available in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7 (see [Can I still log using WCF?](#can-i-still-log-using-wcf)). See the [Hardening][] guide for supported protocols and security recommendations. The TLS host name and certificate of the Log API are set in the Portal under [Core host Configuration][Portal Core Host TLS].  

If the browser returns that the certificate is not secure, the [Log API][] will not work (since it is not operational).  
![Not a valid cert][1]  
*Example: Browser warning for an invalid certificate prevents Log API operation.*  

## How can I send events and data to the Log API?

You can write your own code to invoke the [Log API][]. Below are your main options, each detailed individually:

* [Log using REST][]

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Other asynchronous options are available, such as posting a <a href="https://docs.nodinite.com/core-services/log-event/overview/">Log Event</a> to the filesystem or, even better, to various queues. Use this in combination with the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> <a href="https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/overview/">Pickup Log Events Service Logging Agent</a> to eliminate dependency on <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> availability—giving you the freedom to update <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> whenever you want. See <a href="https://docs.nodinite.com/core-services/log-api/features/asynchronous-logging/">Asynchronous Logging</a>.</p></div>
</aside>

<div class="mermaid">
sequenceDiagram
    Your Application->>Queue: Create and Send Log Event
    loop Periodic check and loop While Log Events Exists
        alt Run
            Pickup Service->>Queue: Get Log Events from Queue
            Queue->>Pickup Service: Read Message
            Pickup Service->>Log API: Send Log Event
            Log API->>Pickup Service: ACK/NACK (or Exception)
            Pickup Service->>Queue: Remove Message
        else Failed
            Pickup Service->>Queue: Return Message
        end
    end
</div>

*Illustration: Asynchronous event delivery using Pickup Service and queues for robust, decoupled logging.*  

## Which Log Agents use the Log API?

Any client that posts the JSON [Log Event][] uses the [Log API][]; it has no special handling per agent. These [Log Agents][] use it:

* [BizTalk Server][BizTalk] – Using pipeline components for <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>
* [IBM Integration Bus Logging Agent][] – Get events and messages from IBM Integration Bus using IBM Integration Bus monitoring events
* [Log4Net Appender][] – Add logging from Log4Net-enabled applications
* [MuleSoft Anypoint Logging][] – Use either the Log4J from Logger and [Business Events][] (code) or, even better, your own custom connector
* <i class="fal fa-truck-pickup" aria-hidden="true"></i> [Pickup Log Events Service Logging Agent][Pickup Service]
* **VB6/COM/VBScript** – Log from VB6/VBScript code

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Agents][] can manage situations where the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log API][] is unavailable (such as during updates, service windows, or database outages). The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Log Agents][] will resume operation automatically whenever the [Log API][] comes back online and is operational.

## <i class="fal fa-user-md" aria-hidden="true"></i> Contact our support

If you still have questions or encounter issues with the [Log API][], don't hesitate to contact us, read more on the [Support page][SupportPage].

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

* <i class="fal fa-code" aria-hidden="true"></i> [Log using REST][]  
* <i class="fal fa-clipboard-check" aria-hidden="true"></i> [Prerequisites][]  
* <i class="fal fa-shield-halved" aria-hidden="true"></i> [Protect the Log API with OAuth 2.0 and Entra ID][Protect Log API]  

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

* <i class="fal fa-cloud-arrow-down" aria-hidden="true"></i> [Log API][]  
* <i class="fal fa-bolt" aria-hidden="true"></i> [Log Event][]  
* <i class="fal fa-tags" aria-hidden="true"></i> [Context Options][]  
* <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-bolt" aria-hidden="true"></i> [Asynchronous Logging][]  
* <i class="fal fa-flask" aria-hidden="true"></i> [Generate Log Events with PowerShell][Generate Log Events]  
* <i class="fal fa-code" aria-hidden="true"></i> [Hello World C# Sample][Hello World Sample]  
* <i class="fal fa-trash-can" aria-hidden="true"></i> [Uninstall Log API][Uninstall]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/Common/LogonAsAService/CertNotValid.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/RestBasedLogAPI.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/LogEvent_Scalar.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/LogAPI_CheckBeforeSend.gif

[Asynchronous Logging]:https://docs.nodinite.com/core-services/log-api/features/asynchronous-logging/
[Base URL]:https://docs.nodinite.com/core-services/log-api/features/log-using-rest/#find-the-base-url
[BizTalk]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-logging/overview/
[Business Events]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/features/business-events/
[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/
[Event Directions]:https://docs.nodinite.com/core-services/log-event/features/event-directions/
[Generate Log Events]:https://docs.nodinite.com/core-services/log-api/troubleshooting/faq-generate-log-events/
[Hardening]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/how-to-perform-hardening-on-your-nodinite-installation/
[Hello World Sample]:https://docs.nodinite.com/core-services/log-api/troubleshooting/faq-hello-world-net-sample/
[IBM Integration Bus Logging Agent]:https://docs.nodinite.com/logging-and-monitoring/ibm-integration-bus/overview/
[IIS Authentication settings]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/iis-authentication-settings/
[IISConfigurationFile]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/cannot-read-configuration-file-due-to-insufficient-permissions/
[JSON Log Event]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/
[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 Events]:https://docs.nodinite.com/core-services/log-event/overview/
[Log using REST]:https://docs.nodinite.com/core-services/log-api/features/log-using-rest/
[Log using WCF]:https://docs.nodinite.com/core-services/log-api/features/log-using-wcf/
[Log4Net Appender]:https://docs.nodinite.com/logging-and-monitoring/log4net-appender/overview/
[LogAccessRoles]:https://docs.nodinite.com/administration/settings/system-parameters/logaccessroles/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[LogServiceUsers]:https://docs.nodinite.com/administration/settings/system-parameters/logserviceusers/
[MessageProcessingMaxBodySize]:https://docs.nodinite.com/administration/settings/system-parameters/messageprocessingmaxbodysize/
[MissingEventsDays]:https://docs.nodinite.com/administration/settings/system-parameters/missingeventsdays/
[MuleSoft Anypoint Logging]:https://docs.nodinite.com/logging-and-monitoring/mulesoft-anypoint-platform-logging/overview/
[Pickup Service]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/overview/
[Portal Core Host TLS]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#core-host-tls
[Prerequisites]:https://docs.nodinite.com/core-services/log-api/getting-started/prerequisites/
[Prerequisites Accounts]:https://docs.nodinite.com/core-services/log-api/getting-started/prerequisites/#fa-user-shield-accounts-and-rights-at-a-glance
[Protect Log API]:https://docs.nodinite.com/core-services/log-api/scenarios/protect-the-log-api-with-oauth-2-0-and-entra-id/
[Servers step]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#core-platform-services
[SQL Rights]:https://docs.nodinite.com/core-services/log-api/getting-started/prerequisites/#what-sql-rights-does-the-log-api-require
[SqlServer]:https://docs.nodinite.com/administration/settings/system-parameters/sqlserver/
[SupportPage]:https://docs.nodinite.com/getting-started/support/
[Swagger]:https://swagger.io/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Uninstall]:https://docs.nodinite.com/core-services/log-api/troubleshooting/uninstall/
[Update]:https://docs.nodinite.com/core-services/log-api/updating/
[What Happens After]:https://docs.nodinite.com/core-services/log-api/overview/#what-happens-after