@Track-trace glad it helped you, your tip on redirecting standard output to file will be useful for creating a web terminal for each device on the device status card. Thank you too!
All these commands won't work for UDP because the socked id is always the same. Please double check the information you're providing for correctness.
To sort it based on the server logfile time i used these commands.