Continuous measurements of the geomagnetic field variations at ground stations are important to investigate several aspects of magnetospheric dynamics related to variations in the solar wind conditions which, ultimately, originate from the Sun. We present a comparative analysis of geomagnetic field measurements at several ground stations with simultaneous magnetospheric and interplanetary observations in order to understand the origin and characteristics of the observed fluctuations. The results suggest that long period geomagnetic field fluctuations can be directly driven by solar wind density fluctuations at the same frequencies via the modulation of the magnetopause current. We also discuss the possible occurrence of additional contributions related with cavity/waveguide resonances of the entire magnetosphere as well as those of resonance processes of the geomagnetic field lines.