---
title: Nodinite Serilog File Sink
description: Learn how to use the Nodinite Serilog File sink to enable end-to-end tracking from .NET applications using SMB file shares, UNC paths, and local folders.
---

:ReleaseNotes(https://portal.nodinite.com/marketplace/15):

# :fa-display: Nodinite Serilog sink using a File share or Folder

Use the :Nodinite: Serilog sink for **File shares** and **Folders** with your full framework and .NET Core applications to **enable end-to-end tracking**. :Nodinite: supports payload Logging and removes the obstacle that Application Insights logging imposes on message size.

✅ Supports SMB file share, mounted volume, and UNC path  
✅ Supports local file system

>[!IMPORTANT]
>**Set OriginalMessageType for searchable business data** - The File sink writes your log events to SMB shares or local folders for asynchronous processing by the [Pickup Service][]. Without proper [Message Types][], your logged events won't have business data extraction via [Search Field Expressions][], preventing features like [Non-Events Monitoring][], [Business Process Modeling (BPM)][BPM], and business-data searches in [Log Views][] from functioning. Always include `OriginalMessageType` in your logging code before deploying to production. **File sink is ideal for on-premise scenarios and hybrid cloud deployments.**  

<div class="mermaid">
graph LR
    A[.NET Application] --> | Log Event | SLS(Serilog)  
    F[fal:fa-function Azure Function] --> | Log Event | SLS  
    LA[fal:fa-cloud-arrow-down Nodinite Log API]
    PS[far:fa-truck-pickup Pickup Service]
    PS --> LA
    SLS --> SLSB[fa:fa-list File Sink]
    ASB[far:fa-folder File share]
    SLSB --> ASB
    ASB -..-> | Async | PS  
</div>

## Logging Options

Choose one of the following articles based on the solution you want to enable Logging for:

❔['How To Start Logging With Microsoft.Extensions.Logging.ILogger in Azure Functions'][Serilog - ILogger]  
❔['How To Start Logging With Serilog'][Serilog - Logger]  

## Connection Options

Regardless of your choice, include the following configuration in your `appsettings.json` file:

* [File][Serilog - Config - File]

>[!TIP]
>The **Settings** section is shared by all :Nodinite: Serilog sinks. Read more at [Settings Section (appsettings.json)][Serilog - Settings Section]

>[!TIP]
>The application opens every connection outbound. For the ports and hostnames to allow, see the [firewall settings for the Nodinite Serilog sinks][Serilog firewall].

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

❔['How To Start Logging With Microsoft.Extensions.Logging.ILogger in Azure Functions'][Serilog - ILogger]  
❔['How To Start Logging With Serilog'][Serilog - Logger]  

## :fa-link-horizontal: Related Topics

:fa-file: [Message Types][] - Critical for [Search Field][Search Fields] extraction from File sink events  
:fa-magnifying-glass-plus: [Search Field Expressions][] - Extract business data from logged messages  
:fa-table-list: [Log Views][] - Search logged data by business identifiers  
:fa-stopwatch: [Non-Events Monitoring][] - Track message volumes and detect missing messages  
:fa-project-diagram: [Business Process Modeling (BPM)][BPM] - End-to-end transaction tracking  
:fa-truck-pickup: [Pickup Service][] - Processes file-based log events  

* [Serilog - Blob Storage][]  
* [Serilog - Event Hub][]  
* [Serilog - LogAPI][]  
* [Serilog - Service Bus][]  

[BPM]:{ndr}/Repository%20Model/BPMs/Overview.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Non-Events Monitoring]:{ndr}/Logging%20and%20Monitoring/Non-Events/Overview.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/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
[Serilog - Blob Storage]:{ndr}/Logging%20and%20Monitoring/Serilog/Features/Blob%20Storage.md
[Serilog - Config - File]:{ndr}/Logging%20and%20Monitoring/Serilog/How%20To%20Start%20Logging%20With%20Serilog.md#file
[Serilog - Event Hub]:{ndr}/Logging%20and%20Monitoring/Serilog/Features/Event%20Hub.md
[Serilog - ILogger]:{ndr}/Logging%20and%20Monitoring/Serilog/How%20To%20Start%20Logging%20Extending%20ILogger.md
[Serilog - LogAPI]:{ndr}/Logging%20and%20Monitoring/Serilog/Features/Log%20API.md
[Serilog - Logger]:{ndr}/Logging%20and%20Monitoring/Serilog/How%20To%20Start%20Logging%20With%20Serilog.md
[Serilog - Service Bus]:{ndr}/Logging%20and%20Monitoring/Serilog/Features/ServiceBus.md
[Serilog - Settings Section]:{ndr}/Logging%20and%20Monitoring/Serilog/Settings%20Section.md
[Serilog firewall]:{ndr}/Logging%20and%20Monitoring/Serilog/Overview.md#fa-shield-check-what-firewall-settings-are-required-for-the-nodinite-serilog-sinks