NEW YORK (Reuters) - U.S. crude oil production shattered a 47-year output record in November and retreated slightly in December, the U.S. Energy Department said on Wednesday, as oil production from shale continued to upend global supply patterns.

FILE PHOTO: A service truck drives past an oil well on the Fort Berthold Indian Reservation in North Dakota, U.S., November 1, 2014. REUTERS/Andrew Cullen/File Photo

Oil output rose to 10.057 million barrels per day (bpd) in November, a revision from earlier estimates, the EIA said. December production fell 108,000 bpd to 9.949 million bpd, it said.

November’s figure exceeded the 10.044 million barrels produced daily in November 1970. Output has surged in the last several years due to the shale boom, pushing the United States past Saudi Arabia among top producers. Only Russia now has greater daily oil output.

The new record probably will not last. The U.S. government forecasts production will hit 11 million barrels per day later this year.

“We’ve got a lot more oil to produce and we’ll be through that 11 million barrel-per-day threshold much sooner than expected,” said Phillip Streible, senior market strategist at RJO Futures in Chicago.

The gains are primarily due to rising production in shale regions in Texas and North Dakota. Output there ramped up sharply at the beginning of the decade as new techniques involving hydraulic fracturing, or fracking, allowed drillers to extract vast quantities of crude from oil fields.

The increase in crude output has cut U.S. oil imports by a fifth over a decade, and boosted energy exports.

Soaring U.S. production kept a lid on oil prices this year, even though the Organization of the Petroleum Exporting Countries and Russia have reduced output.

In December, production pulled back after three consecutive increases, according to the EIA. The decline was driven by offshore Gulf of Mexico output, which dropped by 131,000 bpd in the month. Four Gulf of Mexico platforms were shuttered throughout the month after a fire.

The EIA said total crude oil and products demand in December

was 20.08 million bpd, up about 0.5 percent from 19.98 million bpd a year earlier and down about 1 percent from the previous month.

Americans consumed 0.01 percent less gasoline in 2017 than they did in the prior year, EIA data showed, marking the first year-to-year decrease since 2012.

U.S. gasoline demand was 9.32 million barrels in 2017, the data showed. Demand for gasoline hit record levels in 2016, averaging 9.326 million barrels per day.

U.S. natural gas production in the lower 48 states rose to a monthly all-time high of 87.1 billion cubic feet per day in December, from the prior record of 86.4 bcfd in November, the EIA said.

The increase was driven by a 3.1 percent gain in Pennsylvania to a record 16.2 bcfd, and a 3.7 percent gain in Louisiana to 7.0 bcfd. Output in Texas, the largest U.S. gas producer, eased 0.2 percent to 22.7 bcfd.