---
title: Monitor Correlated Events and Transactions with Nodinite Log File Parser
description: Monitor correlated events and transactions with Nodinite Log File Parser. Track ACK/NAK patterns, detect incomplete workflows, and ensure end-to-end transaction visibility across multiple log files.
---

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

# :fa-link: Monitoring Correlated Events

**Technical guide to ACK/NAK transaction correlation monitoring—configure start/end patterns, correlation identifiers, timeout thresholds, and transaction state tracking across text-based log files.**

## What is Correlated Event Monitoring?

Correlated event monitoring tracks business transaction sequences by matching start patterns with corresponding end patterns using extracted correlation identifiers. When a start event is detected but no matching end event occurs within the configured timeout, the [Log File Parser Monitoring Agent][] triggers a warning or error alert.

### Correlation Monitoring Flow

```mermaid
flowchart TD
    Start([Start Event Detected<br/>in Log File A]) --> Extract[Extract Correlation ID<br/>e.g., OrderId: 12345]
    Extract --> Track[Register Transaction<br/>with Timestamp]
    Track --> Monitor{Monitor for<br/>End Event}
    Monitor -->|Found in Log File A or B| EndA[End Event Matched<br/>OrderId: 12345]
    Monitor -->|Warning Timeout| Warn[Warning Alert<br/>Transaction Incomplete]
    Monitor -->|Error Timeout| Error[Error Alert<br/>Transaction Failed]
    EndA --> Complete([✓ Transaction Complete<br/>State: OK])
    Warn --> WaitMore{End Event<br/>Arrives?}
    WaitMore -->|Yes| Complete
    WaitMore -->|No, Error Timeout| Error
    Error --> Failed([✗ Alert Triggered<br/>State: Error])
    style Start fill:#e3f2fd
    style Extract fill:#fff9c4
    style Track fill:#fff9c4
    style EndA fill:#c8e6c9
    style Complete fill:#4caf50,color:#fff
    style Warn fill:#fff3e0
    style Error fill:#ffcdd2
    style Failed fill:#f44336,color:#fff
```

**Key mechanism:** Events can span multiple log files (`incoming.log` → `outgoing.log`), with correlation identifiers linking start and end events regardless of file location.

## When to Use This Monitoring Type

Use correlated event monitoring for **transaction sequence tracking** scenarios:

* :fa-briefcase: **Business workflows** - Order processing, payment confirmations, approval workflows requiring completion verification
* :fa-plug: **Integration patterns** - API request/response pairs, message queue acknowledgments, data synchronization completion
* :fa-sitemap: **Process monitoring** - Batch job start/finish, file processing pipelines, multi-step operations
* :fa-handshake: **SLA compliance** - Track transaction processing times against service level agreements

For **independent event detection** without correlation, use [Monitoring Content Files][] instead.

>[!NOTE]
>For benefits and use cases, see [Log File Parser Monitoring Agent][]. This page focuses on technical correlation mechanics and configuration options.

---

## :fa-cogs: Correlation Mechanics

### Transaction Lifecycle Tracking

1. **Start event detection** - Agent matches line against start pattern [RegEx][]
2. **Identifier extraction** - Capture groups extract correlation ID (e.g., OrderId, TransactionId)
3. **Transaction registration** - Store transaction with identifier, timestamp, source file position
4. **End event matching** - Subsequent lines tested against end pattern with same correlation ID
5. **Timeout evaluation** - Transactions without end events checked against warning/error thresholds
6. **State determination** - Resource state updated based on incomplete transaction count
7. **Alert generation** - State changes trigger notifications via [Monitor Views][] and [Alarm Plugins][]

### Pattern Configuration Syntax

**Start Pattern:**

```regex
OrderReceived.*OrderId:(\d+)
```

* Matches: `2025-01-29 10:15:00 OrderReceived for OrderId:12345`
* Extracts: `12345` (captured via parentheses)

**End Pattern:**

```regex
OrderShipped.*OrderId:$1
```

* `$1` references first capture group from start pattern
* Matches: `2025-01-29 10:45:00 OrderShipped for OrderId:12345`
* Correlation: Same OrderId (12345) links start and end events

**Multi-file correlation:**

* Start pattern in `incoming.log`
* End pattern in `outgoing.log` or same file
* Agent correlates by identifier across file boundaries

### Timeout Threshold Configuration

* ⚠️ **Warning threshold** - Time elapsed before transaction generates Warning state (e.g., 15 minutes)
* ❌ **Error threshold** - Time elapsed before transaction generates Error state (e.g., 30 minutes)
* :fa-stopwatch: **Time calculation** - Measured from start event timestamp to current time
* :fa-sliders: **Dynamic adjustment** - Thresholds modifiable via [Edit Thresholds][Managing Correlated Events - Edit Thresholds] without agent restart

**Example SLA configuration:**

```txt
  Warning: 2 hours
  Error: 24 hours

Payment gateway transactions:
  Warning: 30 seconds
  Error: 5 minutes
```

### File Selection and Correlation Scope

* :fa-file: **Single-file correlation** - Start and end patterns both in same log file
* :fa-copy: **Multi-file correlation** - Start pattern in File A, end pattern in File B
* :fa-asterisk: **Wildcard file patterns** - `payment_*.log` handles daily rotation automatically
* :fa-network-wired: **Network paths** - UNC paths (`\\server\share\logs`), SMB shares, local folders
* :fa-clock: **Time-based filtering** - Control which files are included in correlation monitoring based on file timestamps:
  * **Modified/Created after Clear Date Time** - Monitor only files modified or created after specified timestamp
  * **Modified/Created after File time span** - Monitor files within relative time window (e.g., last 24 hours)
  * **Last Modified/Last Created, one file only** - Monitor only the most recently modified or created file
  * **Evaluate all** - Monitor all matching files regardless of timestamp

**Time option use cases:**

* :fa-file: **Active transaction logs only** - Use "Modified after Clear Date Time" to ignore archived transaction files
* :fa-clock-rotate-left: **Rolling correlation window** - Use "Modified after File time span" for 24-hour transaction monitoring
* :fa-file-lines: **Current transaction file** - Use "Last Modified, one file only" when correlation spans single active log file

![Correlated Events Overview][1]  
*Example: Correlated event configurations tracking business transactions in a [Monitor View][Monitor Views]*

---

## :fa-sliders-h: Monitor Configuration Options

:Nodinite: presents each **Correlated Events Configuration** as a [Resource][Resources], evaluated continuously for transaction completion:

* :fa-window-maximize: **Organize by workflow** - Group configurations by [Application][Applications] (Order Processing, Payment Gateway, Customer Service)
* :fa-tags: **Categorize by type** - All correlation configurations appear under 'Log File Event' [Category][Categories]
* :fa-server: **Scale monitoring** - Deploy multiple agents across transaction processing servers
* :fa-layer-group: **Apply different SLAs** - Use varied timeout thresholds for different transaction types

![Correlated Events Categories][2]  
*Example: Correlated Events configurations organized by [Category][Categories]*

### **Configuration Elements**

* :fa-tag: **Display name** comes from your [Correlated Events Configuration][Configuration - Correlated Events] settings
* :fa-window-maximize: **Application association** links transaction monitoring to business systems
* :fa-filter: **Start/End patterns** define what constitutes transaction begin and completion events
* :fa-stopwatch: **Timeout thresholds** control when warnings and errors are triggered for incomplete transactions

### Resource State Evaluation

Each Correlated Events Configuration ([Resource][Resources]) maintains one of these states based on incomplete transaction evaluation:

|State|Condition|Description|  
|---|---|---|  
|🚫 **Unavailable**|File access failed|Agent cannot read files (network issue, permissions, path not found)|  
|❌ **Error**|Timeout exceeded|One or more transactions exceed error threshold without end event|  
|⚠️ **Warning**|Approaching timeout|One or more transactions exceed warning threshold but not error threshold|  
|✅ **OK**|Transactions complete|All start events have matching end events within configured timeouts|  

![Transaction States][4]  
*Example: Correlated events resource showing transaction monitoring state*

**Override default state evaluation** using the [Expected State][] feature (e.g., expect Warning state during batch processing windows).

---

## :fa-bolt: Remote Actions for Incomplete Transactions

When incomplete transactions are detected or timeout thresholds require adjustment, perform these [Remote Actions][] from the [Web Client][]:

![Remote Actions][3]  
*Example: Remote actions for incomplete transactions*

* **:fa-edit: [Edit Thresholds][Managing Correlated Events - Edit Thresholds]** - Adjust warning/error timeout values without agent restart to match changing SLA requirements
* **:fa-circle-info: [Error Report][Managing Correlated Events - Error Report]** - View incomplete transaction details, correlation IDs, timeout status, and file context
* **:fa-broom: [Clear Errors][Managing Correlated Events - Clear Errors]** - Reset resource state after resolving stuck transactions or post-maintenance cleanup
* **:fa-file-alt: [Show Log Files][Managing Correlated Events - Show Log Files]** - Display monitored transaction log files, download for offline analysis

All actions require appropriate [Role][Roles] permissions and are logged to the [Audit Trail][].

>[!TIP]
>See [Managing Correlated Events][] for complete action details, including timeout adjustment scenarios, transaction investigation workflows, and troubleshooting.

---

## :fa-code: Correlation Pattern Examples

### Order Processing Workflow

```regex
Start Pattern: OrderReceived.*OrderId:(\d+)
End Pattern:   OrderShipped.*OrderId:$1
Warning: 2 hours
Error: 24 hours
```

Detects orders that aren't shipped within SLA.

### Payment Transaction Tracking

```regex
Start Pattern: PaymentInitiated.*TransactionId:([A-Z0-9]+)
End Pattern:   Payment(Confirmed|Failed).*TransactionId:$1
Warning: 30 seconds
Error: 5 minutes
```

Detects stuck payment transactions, matches both success and failure end events.

### API Request/Response Monitoring

```regex
Start Pattern: APIRequest.*RequestId:([a-f0-9-]+).*POST /api/orders
End Pattern:   APIResponse.*RequestId:$1.*(200|201)
Warning: 10 seconds
Error: 30 seconds
```

Ensures API requests receive successful responses within SLA.

### Batch Job Processing

```regex
Start Pattern: BatchJobStarted.*JobId:([A-Z0-9]+).*daily-reconciliation
End Pattern:   BatchJob(Completed|Failed).*JobId:$1
Warning: 3 hours
Error: 4 hours
```

Monitors overnight batch job completion.

---

## :fa-file-code: Supported Correlation Scenarios

### File Organization Patterns

* :fa-file: **Single file** - Start and end events in same log file (common for application logs)
* :fa-copy: **Multi-file** - Start event in `incoming.log`, end event in `outgoing.log` (integration scenarios)
* :fa-asterisk: **Wildcard rotation** - `payment_*.log` handles daily/hourly log rotation
* :fa-network-wired: **Mixed paths** - Start event on local file, end event on SMB share (distributed systems)

### Identifier Patterns

* **Numeric IDs** - Order numbers, transaction IDs: `(\d+)`
* **Alphanumeric** - Customer references, session IDs: `([A-Z0-9]+)`
* **GUIDs** - Transaction GUIDs: `([a-f0-9-]{36})`
* **Composite keys** - Multiple capture groups: `Customer:(\w+).*Order:(\d+)`

### End Event Variations

* **Success only** - `OrderCompleted.*OrderId:$1`
* **Success or failure** - `Order(Completed | Failed).*OrderId:$1`  
* **Multiple outcomes** - `(Success | Warning | Error).*TransactionId:$1`  

---

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

**Configuration and setup:**  

:fa-gear: [Configuration - Correlated Events][Configuration - Correlated Events] - Complete setup guide with pattern syntax and timeout configuration  
:fa-list-check: [Prerequisites][Prerequisites for Log File Parser Monitoring Agent] - File permissions, network access, agent requirements  
:fa-puzzle-piece: [Install Agent][Install Log File Parser Monitoring Agent] - Agent installation and [Core Services][] registration  

**Management and operations:**  

:fa-wrench: [Managing Correlated Events][] - Remote actions for incomplete transactions (Edit, Error Report, Clear, Show Files)  
:fa-search: [Monitoring Content Files][] - Alternative monitoring type for independent event detection  

**Implementation examples:**  

:fa-link: [How to Monitor Correlated Events][Correlation] - Step-by-step configuration walkthrough  
:fa-link: [How to Monitor Content Files][ContentFiles] - Step-by-step configuration walkthrough  

## :fa-link-horizontal: Related Topics

:fa-wrench: [Managing Content Files][] - Content management and investigation actions  
:fa-search: [Monitoring Content Files][] - Pattern-based content detection and alerting  
:fa-gear: [Configuration - Correlated Events][Configuration - Correlated Events] - Complete setup and pattern configuration  
:fa-question-circle: [Troubleshooting Correlation Monitoring][Troubleshooting] - Common issues and resolution guides  

[1]:{ndm}/Documentation%20Pictures/MonitorAgent/LogFileParser/ResourcesInMonitorView.png
[2]:{ndm}/Documentation%20Pictures/MonitorAgent/LogFileParser/LogFileEventsCategory.png
[3]:{ndm}/Documentation%20Pictures/MonitorAgent/LogFileParser/Actions.png
[4]:{ndm}/Documentation%20Pictures/MonitorAgent/LogFileParser/ResourceUnavailable.png

[Alarm Plugins]:{ndr}/Administration/5.%20Settings/1.%20Alarm%20Plugins/Features/What%20is%20an%20Alarm%20Plugin.md
[Applications]:{ndr}/Administration/2.%20Monitor%20Management/5.%20Applications/Features/What%20is%20an%20Application.md
[Audit Trail]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Categories]:{ndr}/Administration/2.%20Monitor%20Management/4.%20Categories/Features/What%20is%20a%20Category.md
[Configuration - Correlated Events]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Getting%20started/3A.%20Configuration%20-%20Correlated%20Events.md
[ContentFiles]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Troubleshooting/How%20to%20monitor%20file%20content.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[Correlation]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Troubleshooting/How%20to%20monitor%20correlated%20events.md
[Expected State]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/Expected%20State.md
[Install Log File Parser Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Getting%20started/2.%20Install.md
[Log File Parser Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Overview.md
[Managing Content Files]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Managing%20Content%20Files.md
[Managing Correlated Events]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Managing%20Correlated%20Events.md
[Managing Correlated Events - Clear Errors]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Managing%20Correlated%20Events.md#fa-broom-clear-errors
[Managing Correlated Events - Edit Thresholds]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Managing%20Correlated%20Events.md#fa-edit-edit-time-based-thresholds
[Managing Correlated Events - Error Report]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Managing%20Correlated%20Events.md#fa-circle-info-error-report
[Managing Correlated Events - Show Log Files]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Managing%20Correlated%20Events.md#fa-file-alt-show-log-files
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Monitoring Content Files]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Features/Monitoring%20Content%20Files.md
[Prerequisites for Log File Parser Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Getting%20started/1.%20Prerequisites.md
[RegEx]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Formula/Extract/regex.md
[Remote Actions]:{ndr}/Getting%20Started/3.%20Monitor/Remote%20Actions.md
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md
[Roles]:{ndr}/Administration/3.%20Access%20Management/1.%20Roles/Features/What%20is%20a%20Role.md
[Troubleshooting]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Troubleshooting/Overview.md
[Web Client]:{ndr}/Getting%20Started/Overview.md