Splunk Props & Transforms Node
The splunk_props_transforms node applies a Splunk props.conf and transforms.conf to records that are already
whole events. For each record it picks the matching stanzas from the event's host, source and sourcetype, then runs
SEDCMD and TRANSFORMS the way a Splunk indexer does at index time, and extracts the event time into __ts__.
Records sent to the nullQueue are dropped. The node does not break events: event boundaries come from the source's
decoder framing, for example text multiline framing with a startPattern.
Key Features
- Your Splunk files: paste the
props.confandtransforms.conffrom your indexer or Heavy Forwarder - Splunk stanza matching:
[default],[sourcetype],[host::…]and[source::…]stanzas, matched as Splunk does - SEDCMD and TRANSFORMS: masking,
_rawrewrites,nullQueuedrops, and index, sourcetype and host rewrites - Event time:
TIME_PREFIX,TIME_FORMAT,MAX_TIMESTAMP_LOOKAHEAD,TZandDATETIME_CONFIGset__ts__ - Label fields by default: reads and writes
__host__,__source__,__sourcetype__and__index__, the fields the Splunk HEC sink sends; any field can be configured instead, with fallback values - Built-in sourcetypes: common sourcetypes such as
syslogwork without an uploaded stanza
Configuration
Every field is optional. An empty string is treated as absent.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
propsConf | String | No | — | The text of a Splunk props.conf. At most 256 KiB. |
transformsConf | String | No | — | The text of a Splunk transforms.conf. At most 256 KiB. |
rawField | String | No | __raw__ | Field holding the event text. The node reads it and writes the result back to it. |
hostField | String | No | __host__ | Field holding the event's host. |
sourceField | String | No | __source__ | Field holding the event's source. |
sourcetypeField | String | No | __sourcetype__ | Field holding the event's sourcetype. |
indexField | String | No | __index__ | Field holding the event's index. |
hostFallback | String | No | — | Host used when hostField is missing, empty or not a string. |
sourceFallback | String | No | — | Source used when sourceField is missing, empty or not a string. |
sourcetypeFallback | String | No | — | Sourcetype used when sourcetypeField is missing, empty or not a string. |
indexFallback | String | No | — | Index used when indexField is missing, empty or not a string. |
The defaults are the label fields the Splunk HEC sink reads, so a rewritten sourcetype or index
reaches Splunk without further mapping. The event time is always written to __ts__; there is no field setting for it.
With no files, the node still applies the built-in sourcetype settings.
Data from a syslog or Splunk S2S endpoint
Records from a push stream fed by an ingest endpoint already carry their Splunk metadata as label fields: a Splunk S2S
endpoint sets __host__, __source__, __sourcetype__, __index__ and __ts__, and a syslog endpoint sets
__host__. The default field settings read them as they are.
For a syslog endpoint, put this node first after the source with sourcetypeFallback: syslog. Syslog records have no
sourcetype, so the fallback selects the built-in [syslog] rules, which read the host and time from the syslog
header, and your transforms.conf can rewrite the sourcetype, for example to cisco:asa. Place routing and filtering
after this node so they see the rewritten values.
Do not add this node after a Splunk S2S endpoint. The endpoint already applied the props.conf and transforms.conf
to the forwarder's events, and running SEDCMD and TRANSFORMS again can change the event text twice.
Behavior
Per record
- The node reads the event text from
rawField, and host, source, sourcetype and index from their fields. A metadata field that is missing, empty or not a string takes its fallback value. - It picks the settings from the matching stanzas. A later stanza in this list overrides an earlier one for the same
key:
[default],[sourcetype],[host::…],[source::…]. Patterns use Splunk's...and*wildcards, and host patterns are case-insensitive. - It extracts the event time from the text; see Event time.
- It applies every
SEDCMD-*, then everyTRANSFORMS-*in class order. - If a transform sends the event to the
nullQueue, the record is dropped. - Otherwise the text is written back to
rawField, and host, source, sourcetype and index are written to their configured fields, including any rewrites. A metadata field that holds a non-string value is kept unless a transform rewrites it.
A record whose rawField is missing or not a string goes to the error output with the message
field '<rawField>' is missing or not a string. See Error Handling.
Event time
The node writes the event time to __ts__ as epoch milliseconds, the field the Splunk HEC sink sends as the event's
time. These stanza settings control the extraction:
| Setting | Effect |
|---|---|
TIME_PREFIX | Regex; the search for a timestamp starts after its first match. |
MAX_TIMESTAMP_LOOKAHEAD | Number of characters searched after TIME_PREFIX. Default 128; 0 or a negative value means the whole text. |
TIME_FORMAT | strptime pattern, for example %Y-%m-%d %H:%M:%S.%3N %z. The first match within the window is used. |
TZ | Time zone for timestamps that carry none: an IANA name such as America/Los_Angeles or a fixed offset such as -0500. Without TZ, UTC is used. |
DATETIME_CONFIG | NONE turns extraction off for the stanza; CURRENT sets __ts__ to the processing time. |
When the stanza sets no TIME_FORMAT, or the format finds no match, the node recognises these shapes and takes the
leftmost match within the window:
- ISO 8601, such as
2026-11-05T10:00:01.123Zor2026-11-05 10:00:01 - US numeric dates, such as
11/05/2026 10:00:01or11-05-26 10:00, and day-first dates with dots, such as05.11.2026 10:00:01 - Apache access-log dates, such as
05/Nov/2026:10:00:01 +0000 - Epoch seconds or milliseconds
- Syslog headers, such as
Nov 5 10:00:01orNov 5, 2026 10:00:01
The built-in shapes read a 24-hour clock and ignore an AM/PM marker. For 12-hour times set TIME_FORMAT, for example %b %d, %Y %I:%M:%S %p.
A timestamp with its own zone or offset keeps it. One without a zone is read in the stanza's TZ, otherwise in UTC. A
syslog header without a year takes the current year, or the previous year when that would place the event more than
two days in the future. A TZ value that is not a recognised zone is reported as a warning when the node starts and
the stanza behaves as if TZ were unset.
When a timestamp is found it replaces any __ts__ already on the record. When none is found, __ts__ is left as it
is and the event is counted in the node's no-timestamp metric; a record that still has no __ts__ reaches Splunk
without a time, and Splunk stamps the time it received the event. Events dropped by a transform are not counted.
Supported transforms
A TRANSFORMS-<class> = <name> entry in props.conf names a stanza in transforms.conf. The node supports:
DEST_KEY | Effect |
|---|---|
queue | FORMAT = nullQueue drops the event. FORMAT = indexQueue keeps it. |
_MetaData:Index | Sets the index to FORMAT. |
MetaData:Sourcetype | Sets the sourcetype. Write FORMAT = sourcetype::<value>. |
MetaData:Host | Sets the host. Write FORMAT = host::<value>. |
_raw | Replaces the event text with FORMAT. |
FORMAT can use $1, $2 and so on for the groups captured by REGEX.
Built-in sourcetypes
Fleak has built-in settings for these sourcetypes. They apply only where no uploaded stanza sets the same key.
| Sourcetype | Built-in settings |
|---|---|
syslog | One line per event. Host and time taken from the RFC 3164 header. |
access_combined | One line per event. |
access_common | One line per event. |
apache_error | One line per event. |
_json | Each object that starts a line is an event. |
csv | One row per event. |
log4j | A dated line starts an event; stack traces join it. |
This node receives whole events, so only the per-event parts take effect here. For example, a syslog event gets
its host and time from the syslog header. Line and event breaking comes from the source's decoder.
Validation errors
The files are checked when the node starts. An invalid file stops the node with an error that names the file and line, for example:
props.conf line 2: expected [stanza] or key = valueprops.conf must be at most 256 KiB
Settings not applied
Settings the node does not apply are reported as warnings, and the node still runs. For example:
props.conf [app_log] KV_MODE is not appliedprops.conf [app_log] LINE_BREAKER is not applied to whole events
Event-breaking settings (LINE_BREAKER, SHOULD_LINEMERGE, BREAK_ONLY_BEFORE, BREAK_ONLY_BEFORE_DATE,
MUST_BREAK_AFTER, MAX_EVENTS) and TRUNCATE are not applied, because each record is already one event. Set the
event boundaries in the source's decoding instead.
A SEDCMD whose replacement refers to a group its regex does not define is also listed and not applied.
These are not supported:
- Search-time settings, such as
EXTRACT,REPORTandFIELDALIAS CLONE_SOURCETYPE,INGEST_EVALandWRITE_META- Index-time field extraction
Examples
Drop DEBUG events from S3 logs
The source reads text objects from S3. Its multiline framing starts a new event at each line that begins with a
date, so a stack trace stays with its log line. The records have no sourcetype, so sourcetypeFallback sets it to
app_log. The [app_log] stanza sends every event that contains DEBUG to the nullQueue and tells the node where
the timestamp is.
jobContext:
metricTags: {}
otherProperties: {}
dag:
- id: source
commandName: fssource
config:
backend: s3
root: s3://my-bucket/app-logs/
decoding:
format:
type: text
framing:
type: multiline
startPattern: '^\d{4}-\d{2}-\d{2}'
backendConfig:
region: us-east-1
outputs:
- props_transforms
- id: props_transforms
commandName: splunk_props_transforms
config:
sourcetypeFallback: app_log
propsConf: |
[app_log]
TIME_FORMAT = %Y-%m-%d %H:%M:%S
TZ = America/Los_Angeles
TRANSFORMS-drop = drop_debug
transformsConf: |
[drop_debug]
REGEX = DEBUG
DEST_KEY = queue
FORMAT = nullQueue
outputs:
- sink
- id: sink
commandName: stdout
config:
encodingType: JSON_OBJECT
If an object holds 10 events and 3 of them contain DEBUG, 7 records leave the node. Each has the event text in
__raw__, __sourcetype__ set to app_log, and __ts__ set to the line's date read in Pacific time.
Rewrite the sourcetype of syslog events
Records from a syslog ingest endpoint carry __host__ and no sourcetype. sourcetypeFallback: syslog selects the
built-in [syslog] rules, and the transform gives Cisco ASA messages their own sourcetype before routing.
- id: props_transforms
commandName: splunk_props_transforms
config:
sourcetypeFallback: syslog
propsConf: |
[syslog]
TRANSFORMS-asa = cisco_asa
transformsConf: |
[cisco_asa]
REGEX = %ASA-\d-\d+
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::cisco:asa
outputs:
- router
An event Nov 5 10:00:01 fw01 %ASA-6-302013: Built outbound TCP connection leaves the node with
__sourcetype__ set to cisco:asa and __ts__ set to 5 November, 10:00:01 UTC, of the current year.
Related nodes
- fssource: Read files and set event boundaries with
multilineframing - splunkhecsink: Send events to Splunk with the host, source, sourcetype, index and time this node sets
- filter: Drop records with a FEEL condition instead of a Splunk transform