---
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 :Nodinite: [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 :Nodinite: v7 the installation CLI creates the Log API IIS web site and its application pool from the values in the :Nodinite: 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][].*  

>[!NOTE]
>Swagger may be removed in a future version. Use Scalar for new work.

## 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 :Nodinite: v7, each environment's Log API is its own IIS web site with its own port, which is set in the :Nodinite: 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 :Nodinite: 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 :Nodinite:, 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 :Nodinite: [Context Options][], you can control the behaviour of how :Nodinite: 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 :Nodinite: 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 :Nodinite: 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][]

>[!TIP]
>Other asynchronous options are available, such as posting a [Log Event][] to the filesystem or, even better, to various queues. Use this in combination with the :Nodinite: [Pickup Log Events Service Logging Agent][Pickup Service] to eliminate dependency on :Nodinite: availability—giving you the freedom to update :Nodinite: whenever you want. See [Asynchronous Logging][].

<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 :Nodinite:
* [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
* :fa-truck-pickup: [Pickup Log Events Service Logging Agent][Pickup Service]
* **VB6/COM/VBScript** – Log from VB6/VBScript code

:Nodinite: [Log Agents][] can manage situations where the :Nodinite: [Log API][] is unavailable (such as during updates, service windows, or database outages). The :Nodinite: [Log Agents][] will resume operation automatically whenever the [Log API][] comes back online and is operational.

## :fa-user-md: 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].

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

* :fa-code: [Log using REST][]  
* :fa-clipboard-check: [Prerequisites][]  
* :fa-shield-halved: [Protect the Log API with OAuth 2.0 and Entra ID][Protect Log API]  

## :fa-link-horizontal: Related Topics

* :fa-cloud-arrow-down: [Log API][]  
* :fa-bolt: [Log Event][]  
* :fa-tags: [Context Options][]  
* :fa-box-archive: [Log Agents][]  
* :fa-hard-drive: [Logging Service][]  
* :fa-bolt: [Asynchronous Logging][]  
* :fa-flask: [Generate Log Events with PowerShell][Generate Log Events]  
* :fa-code: [Hello World C# Sample][Hello World Sample]  
* :fa-trash-can: [Uninstall Log API][Uninstall]  

[1]:{ndm}/Documentation%20Pictures/IM/Common/LogonAsAService/CertNotValid.png
[2]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/RestBasedLogAPI.png
[3]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/LogEvent_Scalar.png
[4]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/LogAPI_CheckBeforeSend.gif

[Asynchronous Logging]:{ndr}/Core%20Services/Log%20API/Features/Asynchronous%20Logging.md
[Base URL]:{ndr}/Core%20Services/Log%20API/Features/Log%20using%20REST.md#find-the-base-url
[BizTalk]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Logging/Overview.md
[Business Events]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Features/Business%20Events.md
[Context Options]:{ndr}/Core%20Services/Log%20Event/Features/Context%20Options.md
[ContextPropertiesFilters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/ContextPropertiesFilters.md
[Endpoint Directions]:{ndr}/Core%20Services/Log%20Event/Features/Endpoint%20Directions.md
[Endpoint Types]:{ndr}/Core%20Services/Log%20Event/Features/Endpoint%20Types.md
[Event Directions]:{ndr}/Core%20Services/Log%20Event/Features/Event%20Directions.md
[Generate Log Events]:{ndr}/Core%20Services/Log%20API/Troubleshooting/FAQ%20-%20Generate%20Log%20Events.md
[Hardening]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/How%20to%20perform%20hardening%20on%20your%20Nodinite%20installation.md
[Hello World Sample]:{ndr}/Core%20Services/Log%20API/Troubleshooting/FAQ%20-%20Hello%20World%20-%20.NET%20Sample.md
[IBM Integration Bus Logging Agent]:{ndr}/Logging%20and%20Monitoring/IBM%20Integration%20Bus/Overview.md
[IIS Authentication settings]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Authentication%20settings.md
[IISConfigurationFile]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Cannot%20read%20configuration%20file%20due%20to%20insufficient%20permissions.md
[JSON Log Event]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.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 Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log Events]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log using REST]:{ndr}/Core%20Services/Log%20API/Features/Log%20using%20REST.md
[Log using WCF]:{ndr}/Core%20Services/Log%20API/Features/Log%20using%20WCF.md
[Log4Net Appender]:{ndr}/Logging%20and%20Monitoring/Log4Net%20Appender/Overview.md
[LogAccessRoles]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogAccessRoles.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[LogServiceUsers]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogServiceUsers.md
[MessageProcessingMaxBodySize]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/MessageProcessingMaxBodySize.md
[MissingEventsDays]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/MissingEventsDays.md
[MuleSoft Anypoint Logging]:{ndr}/Logging%20and%20Monitoring/MuleSoft%20-%20AnyPoint%20Platform%20-%20Logging/Overview.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[Portal Core Host TLS]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-host-tls
[Prerequisites]:{ndr}/Core%20Services/Log%20API/Getting%20started/1.%20Prerequisites.md
[Prerequisites Accounts]:{ndr}/Core%20Services/Log%20API/Getting%20started/1.%20Prerequisites.md#fa-user-shield-accounts-and-rights-at-a-glance
[Protect Log API]:{ndr}/Core%20Services/Log%20API/Scenarios/Protect%20the%20Log%20API%20with%20OAuth%202.0%20and%20Entra%20ID.md
[Servers step]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-platform-services
[SQL Rights]:{ndr}/Core%20Services/Log%20API/Getting%20started/1.%20Prerequisites.md#what-sql-rights-does-the-log-api-require
[SqlServer]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SqlServer.md
[SupportPage]:{ndr}/Getting%20Started/Support.md
[Swagger]:https://swagger.io/
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Uninstall]:{ndr}/Core%20Services/Log%20API/Troubleshooting/Uninstall.md
[Update]:{ndr}/Core%20Services/Log%20API/Updating.md
[What Happens After]:{ndr}/Core%20Services/Log%20API/Overview.md#what-happens-after