Water entering into fireplace during rain
It sounds like your chimney cap top might have flew off for that much water to come in.  Mine just a few months ago and I had to secure it with extra screws.  I would check that first.  

If it is only coming inside the chimney it really has to be top of the cap or that you need caulking around the base of your cap.