I have several logs containing lines all starting with a timestamp, so that the following works as expected to merge them:
cat myLog1.txt myLog2.txt | sort -n &g
The open source tool (Java GitHub) lets you combine log files with different formats including multilines into a merged file.
The tool allows to shift the time of records in a log file. It can be useful when files come from different time zones.
It also allows to generate additional information to a merged file, for example applications names or timestamps in a uniform format, see the example.
The tool can be used as a command line tool or Java library. Note: I'm the author.