# SPDX-License-Identifier: MIT-0 # Copyright (c) 2026 EgosTech Innovations SRL # # PXM Log Exporter: sourcetype for Splunk, schema egos.tech/pxmlogexporter version 1. # # The HTTP Event Collector preset sends every event as the "event" of a HEC request with its own time, # so no timestamp or line breaking applies there. The timestamp settings serve the TLS stream sink in # NDJSON form and file inputs, where each line is one event. The syslog form of the stream needs a syslog # collector in front of Splunk that passes on the message part of each message, the event's JSON. # # Delivery is at least once: an event can arrive twice; the field id is unique per event. [pxm:logexporter] KV_MODE = json SHOULD_LINEMERGE = false LINE_BREAKER = ([\r\n]+) TRUNCATE = 16384 TIME_PREFIX = "time":" TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N%Z MAX_TIMESTAMP_LOOKAHEAD = 32 TZ = UTC # Common Information Model names for the fields most searches use FIELDALIAS-pxmlogexporter_actor = actor.ip AS src actor.ip_network AS src_network actor.user_name AS user actor.user_agent AS http_user_agent FIELDALIAS-pxmlogexporter_request = request.status AS status request.method AS http_method request.path AS uri_path FIELDALIAS-pxmlogexporter_event = event AS signature id AS event_id EVAL-action = case(outcome=="success", "success", outcome=="failure", "failure", true(), "unknown") EVAL-app = "pxm" EVAL-vendor_product = "PXM Log Exporter"