I have a dump of system usage in a raw txt file. I would like to get it in this format. location, server, usage.
I was looking into a dictionary, but I have multiple locations which will be the key. Unless there is a way to store multiple elements with the same key, I dont see how a dictionary will work. I will be doing this in python. What structure can I use to get my result in this format.
Ultimately I would like to print all servers in location X
So will have for ex:
location1
server1
usage X
location1
server2
usage X
location2
server1
usage x