Timestamp conversion in log

the log format is as follows
log

REQ    UP    15275791948097993    POST    /    {"Content-Length":"61926",xxxxxxxxxx}
REQ    UP    15275791948097993    POST    /    {"Content-Length":"61926",xxxxxxxxxx}

grep xxxx log | awk-F""{print strftime ("% Y-%m-%d% H:%M:%S", $3) $0}"

when the timestamp is 10 digits, the above command can be executed normally and parse the correct time, but here the timestamp is 17 digits, how can the time be parsed normally?

Log
Mar.14,2021

try intercepting the top ten places with ${$3:0:10} syntax

Menu