S2S event parsing reference
AI summary
About AI summaries.
Imply Lumi supports a subset of Splunk® properties to configure how to parse incoming events in the S2S protocol.
You assign these properties as S2S attributes on the IAM key for the following integrations:
tcpoutandhttpoutusing universal forwarders- Splunk HEC with the
/rawendpoint
You can set some properties in the Lumi UI when you configure an IAM key.
These properties list their UI field name.
You can set all other properties only in the Splunk props.conf file.
If your data isn't compatible with the available options and can't be made compatible, see other approaches to send events and explore how you can use pipelines to transform incoming events.
Event line breaking
Lumi determines event breaks using the following heuristics:
- Detect and separate lines by newline characters
\ror\n. - Detect a datetime field as the start of a new event.
When an event spans multiple lines, Lumi merges them before storing the event.
A datetime field at the start of a line identifies where the next event begins.
To disable merging of multi-line events, set Should line merge to Off.
This option corresponds to setting SHOULD_LINEMERGE to false.
For more information, see the Splunk documentation for event line breaking.
SHOULD_LINEMERGE
Boolean value that specifies whether Lumi combines multiple input lines into a single event or treats each input line as a separate event.
When set to true, Lumi automatically merges multi-line events.
When set to false, Lumi splits the incoming events into lines following the pattern that LINE_BREAKER defines.
- UI field: Should line merge
- Default:
true
Other line-breaking settings depend on the value of SHOULD_LINEMERGE.
The following table shows when each setting applies:
| Setting | SHOULD_LINEMERGE value |
|---|---|
LINE_BREAKER | false |
LINE_BREAKER_LOOKBEHIND | false |
TRUNCATE | false |
BREAK_ONLY_BEFORE | true |
BREAK_ONLY_BEFORE_DATE | true |
MUST_BREAK_AFTER | true |
MUST_NOT_BREAK_AFTER | true |
MUST_NOT_BREAK_BEFORE | true |
MAX_EVENTS | true |
BREAK_ONLY_BEFORE
Regular expression that starts a new event at any line that matches it.
Applies only when SHOULD_LINEMERGE is true.
- Default: empty string
- Example:
^\d{4}-\d{2}-\d{2}
BREAK_ONLY_BEFORE_DATE
Boolean value that specifies whether Lumi starts a new event only when a new line contains a date.
Lumi uses the DATETIME_CONFIG setting to recognize dates.
If DATETIME_CONFIG is set to CURRENT or NONE, Lumi doesn't identify timestamps.
Applies only when SHOULD_LINEMERGE is true.
- Default: true
LINE_BREAKER
Regular expression that matches event boundaries within a raw data stream.
The regular expression must contain a capture group.
Lumi discards the text that the first capture group matches.
The start of that text marks the end of one event, and the end of that text marks the start of the next event.
Applies only when SHOULD_LINEMERGE is false.
- Default:
([\r\n]+) - Example:
([\r\n]+)(?=\d{4}-\d{2}-\d{2})to start a new line only at those that being with a date.
LINE_BREAKER_LOOKBEHIND
Integer that specifies the number of characters before the end of a raw data chunk Lumi looks back when applying LINE_BREAKER.
The larger the number, the more characters to look back on.
Applies only when SHOULD_LINEMERGE is false.
- Default:
100 - Example:
1000
MAX_EVENTS
Integer the specifies the maximum number of input lines to add to any event.
When the maximum is reached, Lumi starts a new event.
Applies only when SHOULD_LINEMERGE is true.
- Default:
256 - Example:
1000lines per event.
MUST_BREAK_AFTER
Regular expression that starts a new event after the line that matches it.
The current line can still break earlier if another rule matches first.
Applies only when SHOULD_LINEMERGE is true.
- Default: empty string
- Example:
</Event>to end an event after a line that contains a closing tag.
MUST_NOT_BREAK_AFTER
Regular expression that, when a line matches it, prevents Lumi from breaking on any following lines until a line matches MUST_BREAK_AFTER.
Applies only when SHOULD_LINEMERGE is true.
- Default: empty string
- Example:
\\$to continue merging lines into the current event after a line that ends in a backslash.
MUST_NOT_BREAK_BEFORE
Regular expression that prevents Lumi from starting a new event at a line that matches it.
Instead, Lumi merges the line into the previous event.
Applies only when SHOULD_LINEMERGE is true.
- Default: empty string
- Example:
^\s+at\sto keep Java stack trace lines in the same event as the exception that precedes them.
TRUNCATE
Integer that specifies the maximum length of a line, in bytes.
If set to 0, Lumi doesn't truncate lines.
- UI field: Truncate
- Default:
10000 - Example:
100000to truncate any line longer than 100,000 bytes.
Event timestamps
Lumi can automatically parse and extract timestamps from incoming events. For details about timestamp detection and assignment in Lumi, see Timestamp detection.
In cases where Lumi can't detect timestamps, you can configure timestamp parsing using the properties in this section.
They correspond to properties of the same name in a Splunk props.conf file.
For more information, see the Splunk documentation for timestamp recognition.
ADD_EXTRA_TIME_FIELDS
String or boolean value that controls which additional time fields Lumi extracts from an event's timestamp, such as date_hour, date_mday, date_month, date_year, date_zone, timestartpos, and timeendpos.
The attribute accepts the following values:
-
allortrue: Adds all extra time fields. -
subseconds: Adds only the subsecond information from a timestamp. -
noneorfalse: Excludes any extra time fields. -
Default:
true -
Example:
subsecondsto keep subsecond precision without adding other time fields.
DATETIME_CONFIG
String value that specifies how Lumi assigns event timestamps. Accepts the following values:
-
A filename relative to
$SPLUNK_HOMEthat configures the timestamp extractor. -
PARSE: Reads event timestamps from event text. -
CURRENT: Assigns the current system time to each event instead of extracting a timestamp. -
NONE: Turns off timestamp extraction and uses the time Lumi received the event. -
UI field: Datetime config
-
Default: empty string, which uses Lumi's automatic timestamp detection.
DETERMINE_TIMESTAMP_DATE_WITH_SYSTEM_TIME
Boolean value that specifies how Lumi determines the date for a timestamp that has no date.
If set to true, Lumi uses the current system time.
If set to false, Lumi uses the last successfully parsed timestamp.
- UI field: Timestamp date
- Default:
false
MAX_DAYS_AGO
Integer that specifies the maximum number of days in the past that an extracted date can be valid.
If an events' date is older than this limit, Lumi applies the timestamp of the most recent event with an acceptable date.
The maximum number of days allowed is 10951.
- UI field: Max days ago
- Default:
2000 - Example:
3650days
MAX_DAYS_HENCE
Integer that specifies the maximum number of days in the future that an extracted date can be valid.
The maximum number of days allowed is 10950.
- UI field: Max days hence
- Default:
2 - Example:
7
MAX_DIFF_SECS_AGO
Integer that specifies the maximum number of seconds an event's timestamp can be earlier than the timestamp of the previous event from the same source. If an event's timestamp exceeds this limit and doesn't share the same time format of the source's other timestamps, Lumi logs a waring. Lumi rejects the timestamp only if it can't apply any timestamp to the event.
- Default:
3600 - Example:
86400to accept timestamps up to one day earlier than the previous event's timestamp.
MAX_DIFF_SECS_HENCE
Integer that indicated the maximum number of seconds an event's timestamp can be later than the timestamp of the previous event from the same source. If an event's timestamp exceeds this limit and doesn't share the same time format of the source's other timestamps, Lumi logs a waring. Lumi rejects the timestamp only if it can't apply any timestamp to the event.
- Default:
604800 - Example:
3600to accept timestamps up to one hour later than the previous event's timestamp.
MAX_TIMESTAMP_LOOKAHEAD
Integer that specifies the maximum character position to look for a timestamp. If you also set the time prefix, this position starts after the matched text.
- UI field: Max timestamp lookahead
- Default:
128 - Example:
20means to search for the timestamp in the first 20 characters of the event message, following any time prefix.
TIME_FORMAT
String pattern in strptime format that Lumi uses to parse timestamps.
Supports Splunk-specific time variables. For details, see Date and time format variables.
- UI field: Time format
- Default: empty string
- Example:
%Y-%m-%d %H:%M:%S
TIME_PREFIX
Regular expression that matches the text pattern preceding the timestamp.
- UI field: Time prefix
- Default: empty string
- Example:
[\w\.:]*\s[\w-]*\s[\w-]*\s\[
TZ
String expression that specifies the time zone of incoming events.
- UI field: Time zone
- Default: empty string
- Example:
America/New_York
TZ_ALIAS
Comma-separated list of name=zone pairs that specifies how Lumi interprets time zone strings extracted from events.
- UI field: Time zone alias
- Default: empty list
- Example:
IST=GMT+05:30to interpretISTas India Standard Time rather than another time zone that shares the same abbreviation.
Example
Consider an event with the following message:
830:1e0e:525:e6a0:6479:cd69:c364:23c3 - - [24/Mar/2025:16:25:29 -0500] "POST /products/23394 HTTP/1.1" 200 1027 "https://techcrunch.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:110.0) Gecko/20100101 Firefox/110.0"
The timestamp, 24/Mar/2025:16:25:29 -0500, appears after the client IP address, any identity provided for the client, and any provided user ID.
The following settings control how Lumi parses this timestamp:
-
Time prefix:
[\w\.:]*\s[\w-]*\s[\w-]*\s\[
Look for the timestamp following this regular expression pattern:[\w\.:]*to match zero or more word characters, periods, or colons\sto match a single space[\w-]*to match zero or more word characters or hyphens\sto match a single space\[to match a open square bracket
Matches the string
830:1e0e:525:e6a0:6479:cd69:c364:23c3 - - [. -
Max timestamp lookahead: 20
Look for the timestamp within the next 20 characters.
Starts from24, the characters immediately following the prefix.
Matches the value24/Mar/2025:16:25:29. -
Time format:
%d/%b/%Y:%H:%M:%S
Format the discovered timestamp according to this pattern.
Learn more
For more information, see the following topics:
- Learn to send events with S2S for a tutorial on sending events with Splunk-to-Splunk.
- Send events to Lumi with S2S for details about the S2S integrations.
- IAM key attribute reference for reference on the S2S attributes.