Skip to content
Documentation
Updated 3 minutes to read
Markdown

How do I extract business data like Order Numbers from logged messages?

Section titled “How do I extract business data like Order Numbers from logged messages?”

Use Search Field Expressions to automatically extract Order Numbers, Customer IDs, Invoice amounts, and other business identifiers from your logged message bodies—no manual parsing, no SQL queries.

  1. Define Message Types - Identify message formats: "PurchaseOrder#1.0", "Invoice#2.0", "CustomerUpdate#1.0"
  2. Include message body in JSON Log Event - Set Body field with XML, JSON, CSV, EDIFACT, or X12 content
  3. Create Search Field Expressions - Configure extraction rules bound to Message Types
  4. Nodinite extracts automatically - When logs arrive, Search Fields parse message bodies and extract business identifiers
  5. Business users search by business data - Log Views enable search: "Show me Order 12345" or "Export invoices >$10K for customer Contoso"

Message Type: PurchaseOrder#1.0

Logged message body (XML):

<Order>
<OrderId>PO-2025-001</OrderId>
<CustomerId>CUST-12345</CustomerId>
<OrderAmount>15750.50</OrderAmount>
<OrderDate>2025-10-12</OrderDate>
</Order>

Search Field Expression (XPath):

/Order/OrderId/text()

Result: Nodinite automatically extracts PO-2025-001 as searchable field. Business users search: "Order PO-2025-001" → finds transaction instantly.

Message Type: APIRequest#1.0

Logged message body (JSON):

{
"requestId": "req-98765",
"customerId": "CUST-Contoso",
"endpoint": "/api/orders",
"responseTime": 145
}

Search Field Expression (JSON Path):

$.customerId

Result: Extracts CUST-Contoso. Business users filter Log View: "Show all API requests for customer CUST-Contoso last week".

Search Field Expressions support multiple parsers:

  • XPath - XML messages (/Order/OrderId/text())
  • JSON Path - JSON messages ($.order.orderId, $.items[0].sku)
  • Regular Expressions - Any text format (Order ID: (\d+))
  • Flat File parsers - CSV, fixed-width, delimited formats
  • Formula - Complex transformations, concatenation, conditional logic

Extract multiple business identifiers from same message:

Message Type: PurchaseOrder#1.0

  • Search Field 1: OrderId (XPath: /Order/OrderId/text())
  • Search Field 2: CustomerId (XPath: /Order/CustomerId/text())
  • Search Field 3: OrderAmount (XPath: /Order/OrderAmount/text())

Result: Business users search by any combination: "Orders from customer CUST-12345 with amount >$10K last month".

  1. Navigate to Administration → Log Management → Search Fields
  2. Create Search Field - Name: "Order Number", Description: "PurchaseOrder identifier"
  3. Bind to Message Type - Select "PurchaseOrder#1.0"
  4. Configure Expression - Choose parser (XPath, JSON Path, Regex), enter extraction rule
  5. Test with sample - Validate extraction with sample message body
  6. Save - Nodinite applies to all future logs with that Message Type

Existing logs: Search Fields apply retroactively—re-index existing logs to extract business data from historical messages.


Related Topics:
Search Field Expressions Overview
Message Types
Formula for Complex Transformations

See all FAQs: Troubleshooting Overview

Back to Custom Logging Overview

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...