✅ Looking for a way to Extract information from a txt File

Looking to Extracting Particular Information form the Log File.
The Information I would like to extract is look for a Particular IP and read the Number of Alarms and then store the X & Y Co-Ords for that number of Alarms.
e.g.
Looking for IP 10.247.247.11
It would return
IP:10.247.247.11
Time: 2024-02-18 07:51:04
Alarm: 1
X: 845
Y:596
Size: 335
Time: 2024-02-18 07:51:04
Alarm 2
X:845
Y:596
Size:335
X:852
Y:548
Size: 100

I will be using the XY Co-ords to draw onto an image.
Log.txt2.56KB
Was this page helpful?