This is my first question asked here on stackoverflow, and I'm really looking forward to participating in this community. I am new to programming and python was the most recommended first program for many people.
In any case . I have a log file that looks like this:
"No.","Time","Source","Destination","Protocol","Info" "1","0.000000","120.107.103.180","172.16.112.50","TELNET","Telnet Data ..." "2","0.000426","172.16.112.50","172.16.113.168","TELNET","Telnet Data ..." "3","0.019849","172.16.113.168","172.16.112.50","TCP","21582 > telnet [ACK]" "4","0.530125","172.16.113.168","172.16.112.50","TELNET","Telnet Data ..." "5","0.530634","172.16.112.50","172.16.113.168","TELNET","Telnet Data ..."
And I wanted to parse the log file using Python so that it looked like this:
From IP 135.13.216.191 Number of protocols: (IMF 1) (SMTP 38) (TCP 24) (Total: 63)
I would really like some help on what needs to be done to solve this problem, should I use lists and scroll through it or dictionaries / tuples?
Thanks in advance for your help!