I have a server which logs everything into a text file. I have attached a sample image below. From the lines I only want the last line's data in which from LOG : Network , 1675939666804> 16,803,449> [09-02-23 18:47:46.804] > ZNet: SZombienet -> SSteamSDK: LogOff this it only selects 18:47. How can I do it? I also want it to check the file every 10 seconds. Every 10 seconds it should be able to check the latest line and extract the time from it.
Could someone kindly guide me how I will be able to pull this off.
Thank you!