Fluctuating magnetic fields in the magnetosphere