Each shard has a unique ID, which of course relates to the zone it comes from, which is also defined by the lore text.
So when you say you are reading the log file you mean the log file that is generated by EQ, in text I assume. That of course does not hold that informtion.
But you would know what zone it was in thus you would know what shard it is.
For example if I loot a shard in XXX zone I know that shard is Set, ID #22187. Not sure what else you are looking for.
Code:
The Grey (Kel)
Fungus Grove (Dat)
22187 Scarlet Desert (Set)
The Deep (Raf)
Ssra Temple (Vin)
Akheva Ruins (Dax)
22191 Dawnshroud Peaks (Lor)
Maidens Eye (Tak)
Acrylia Caverns (Ved)
22194 Sanctus Seru (Kelara)
I didnt take the time to look up all the IDs, but you get the idea I hope.