Hello,
From what you shared, this confirms the merging is happening on the agent side, even in audit.log on the agent, line 2 already has OBJ_PID and PROCTITLE merged together on a single line. auditd itself wrote them that way.
But what archive.log on the Wazuh server shows is that all 3 record types (SYSCALL + OBJ_PID + PROCTITLE) are on one line, because the Wazuh agent's log_format audit collector joins lines that share the same event ID (398989) before shipping to the server. Which explains why you see it that way.
We can investigate why they are concantenated, please check the auditd dispatcher config:
cat /etc/audit/auditd.conf | grep -E "dispatcher|write_logs|log_format"
Also check if af_unix plugin is active:
cat /etc/audit/plugins.d/af_unix.conf
OR
cat /etc/audisp/plugins.d/af_unix.conf
If write_logs = yes and the lines are still merged in audit.log, this points to a kernel audit buffer flush behavior, when multiple records belong to the same event and are emitted rapidly, some auditd versions write them without a separating newline.
Another question: Is this happening for all the logs originating from audit.log or just occasionally? I also noticed this was not happening when the logs were parsed via syslog until we piped it towards audit log.
Please let me know what you find.