Hi Mohammed,
I note that you are separately picking up the date and time fields.
You could alternatively pick up the combination as a timestamp.
For example
def type=SMF E_Stamp(smftimestamp 17) as smf_section(36,88,8)
The standard event timestamp would analogously be
def type=SMF Stamp(smftimestamp 17) as smf_field(6,8)
The built-in DATETIME field, on the other hand, is a DATETIME. (That is, the first four bytes contain the date, and the second four bytes the time.)
Note that this can be relevant for sorting (you want to first sort on date, and then on time.)
It is possible to convert between those formats using DEFINE.... CONVERT. See https://www.ibm.com/docs/en/szs/3.1.0?topic=define-field-value-manipulation
And here is a bit of CARLa I played around with FWIW:
n type=system; sortlist timezone
n type=smf pl=0 outlim=1
def type=SMF Stamp(smftimestamp 17) as smf_field(6,8)
def type=SMF S_Stamp(smftimestamp 17) as smf_section(36,80,8)
def type=SMF E_Stamp(smftimestamp 17) as smf_section(36,88,8)
s type=119(21)
sortlist TERMINAL SRCIP E_Stamp E_Stamp(smftimestampzone 25),
S_Stamp S_Stamp(smftimestampzone 25) /, ' '(24) E_Stamp(hex 16) /,
stamp(hex 16 p 'eventstamp hex') /,
datetime(hex 16 p 'datetime hex/default') datetime /,
datetime(p 'datetime datetimezone' datetimezone 30) /,
datetime(p 'datetime cef_dtz' cef_dtz 30) /,
datetime(p 'datetime xsd_datetime' xsd_datetime 30) /,
record(dump)
Regards,
------------------------------
Jeroen Tiggelman
IBM - Software Development and Level 3 Support Manager IBM Security zSecure Suite
Delft
------------------------------