A preliminary 3.4 magnitude earthquake struck Friday morning south of Gilroy, according to the United States Geological Survey.