<p>As workarroud you can start kamailio (or docker container) as service unit. Then systemd logs will contain timestamp.<br>
Example</p>
<pre lang="log"><code>[root@node0 ~]# journalctl -flu kamailio-docker
-- Logs begin at Mon 2019-04-01 00:27:18 GMT. --
Apr 03 01:50:11 node0.docker.rcsnet.ru sh[17746]: 68(76) INFO: <script>: 6F3E-C434-46684819C4E9AF592AFC-001@SipHost|log|from sip:1471@client-1143.rcsnet.ru
Apr 03 01:50:11 node0.docker.rcsnet.ru sh[17746]: 68(76) INFO: <script>: 6F3E-C434-46684819C4E9AF592AFC-001@SipHost|log|to sip:1471@client-1143.rcsnet.ru
Apr 03 01:50:11 node0.docker.rcsnet.ru sh[17746]: 68(76) INFO: <script>: 6F3E-C434-46684819C4E9AF592AFC-001@SipHost|log|originated from external sources
Apr 03 01:50:11 node0.docker.rcsnet.ru sh[17746]: 68(76) INFO: <script>: 6F3E-C434-46684819C4E9AF592AFC-001@SipHost|end|issued auth challenge to new registration for sip:1471@client-1143.rcsnet.ru 94.45.179.35:5060
Apr 03 01:50:11 node0.docker.rcsnet.ru sh[17746]: 62(70) INFO: <script>: 6F3E-C434-46684819C4E9AF592AFC-001@SipHost|start|received udp request REGISTER sip:client-1143.rcsnet.ru:5060
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1920#issuecomment-479294009">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZUm3604rsH-908yxL24eSpZJaVC3ks5vdAkigaJpZM4cZaL4">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZeZYbrXXbKUh1kJeUnzT7ICiYPM2ks5vdAkigaJpZM4cZaL4.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sergey-safarov in #1920: As workarroud you can start kamailio (or docker container) as service unit. Then systemd logs will contain timestamp.\r\nExample\r\n```log\r\n[root@node0 ~]# journalctl -flu kamailio-docker\r\n-- Logs begin at Mon 2019-04-01 00:27:18 GMT. --\r\nApr 03 01:50:11 node0.docker.rcsnet.ru sh[17746]: 68(76) INFO: \u003cscript\u003e: 6F3E-C434-46684819C4E9AF592AFC-001@SipHost|log|from sip:1471@client-1143.rcsnet.ru\r\nApr 03 01:50:11 node0.docker.rcsnet.ru sh[17746]: 68(76) INFO: \u003cscript\u003e: 6F3E-C434-46684819C4E9AF592AFC-001@SipHost|log|to sip:1471@client-1143.rcsnet.ru\r\nApr 03 01:50:11 node0.docker.rcsnet.ru sh[17746]: 68(76) INFO: \u003cscript\u003e: 6F3E-C434-46684819C4E9AF592AFC-001@SipHost|log|originated from external sources\r\nApr 03 01:50:11 node0.docker.rcsnet.ru sh[17746]: 68(76) INFO: \u003cscript\u003e: 6F3E-C434-46684819C4E9AF592AFC-001@SipHost|end|issued auth challenge to new registration for sip:1471@client-1143.rcsnet.ru 94.45.179.35:5060\r\nApr 03 01:50:11 node0.docker.rcsnet.ru sh[17746]: 62(70) INFO: \u003cscript\u003e: 6F3E-C434-46684819C4E9AF592AFC-001@SipHost|start|received udp request REGISTER sip:client-1143.rcsnet.ru:5060\r\n``` "}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1920#issuecomment-479294009"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1920#issuecomment-479294009",
"url": "https://github.com/kamailio/kamailio/issues/1920#issuecomment-479294009",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>