Skip to content

feat: structured JSONL logging with tags, PCI protection, and flat me…#680

Merged
ar merged 1 commit intomainfrom
feature/jsonl
Mar 19, 2026
Merged

feat: structured JSONL logging with tags, PCI protection, and flat me…#680
ar merged 1 commit intomainfrom
feature/jsonl

Conversation

@ar
Copy link
Member

@ar ar commented Mar 19, 2026

…tadata

Add structured logging support for multi-node Elasticsearch/JSONL ingestion:

  • Unseal AuditLogEvent to allow jPOS-EE custom event types
  • Add tags (Map<String,String>) to LogEvent with fluent API (withTag/withTags/getTags)
  • Store traceId as a regular tag ("trace-id") instead of a dedicated field
  • Fold realm, trace-id, and host into the flat tags map for uniform ES indexing
  • Rename LogEvt output fields: tag→kind, evt→payload
  • New JsonlLogWriter (extends BaseLogEventWriter, implements Configurable): one JSON line per event with built-in PCI protection for ISOMsg fields (PAN masking via ISOUtil.protect, track/PIN wipe, configurable protect/wipe properties)
  • Populate pcode, tid, mid, mti tags in BaseChannel send/receive
  • Deprecate JsonLogWriter, XmlLogWriter, TxtLogWriter, MarkdownLogWriter

…tadata

Add structured logging support for multi-node Elasticsearch/JSONL ingestion:

- Unseal AuditLogEvent to allow jPOS-EE custom event types
- Add tags (Map<String,String>) to LogEvent with fluent API (withTag/withTags/getTags)
- Store traceId as a regular tag ("trace-id") instead of a dedicated field
- Fold realm, trace-id, and host into the flat tags map for uniform ES indexing
- Rename LogEvt output fields: tag→kind, evt→payload
- New JsonlLogWriter (extends BaseLogEventWriter, implements Configurable):
  one JSON line per event with built-in PCI protection for ISOMsg fields
  (PAN masking via ISOUtil.protect, track/PIN wipe, configurable protect/wipe properties)
- Populate pcode, tid, mid, mti tags in BaseChannel send/receive
- Deprecate JsonLogWriter, XmlLogWriter, TxtLogWriter, MarkdownLogWriter
@ar ar merged commit 3e4ed70 into main Mar 19, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant