* Brent, WTI rise after earlier losses
* Sustained rally difficult, analyst says
Oil prices rose on Monday but the gains were limited as investors gauged whether an increase in US drilling rigs and record stockpiles would undermine efforts by producers to cut output and bring the market into balance.
Brent futures were up 17 cents at $55.98 a barrel at 0616 GMT, while US West Texas Intermediate crude was up 15 cents at $53.55. Both contracts earlier fell slightly in quiet trading.
"Sustained gains above $55 a barrel, and a hoped for rally to $60 a barrel, (are) both proving incredibly tough nuts to crack," said Jeffrey Halley, senior market analyst at futures brokerage OANDA in Singapore.
"At the crux of the matter is that 90 percent Opec compliance is being balanced by ever increasing US shale production," he added.
US energy companies added oil rigs for a fifth consecutive week, Baker Hughes said on Friday, extending a nine-month recovery with producers encouraged by higher prices, which have traded mostly over $50 a barrel since late November.
"Assuming the US oil rig count stays at the current level, we estimate US oil production would increase by 405,000 (barrels per day, or bpd) between 4Q17 and 4Q16 across the Permian, Eagle Ford, Bakken and Niobrara shale plays," Goldman Sachs said in a research note.
Overall, 2017 US production will rise by an average 130,000 bpd from a year ago, the note said.
The Organization of the Petroleum Exporting Countries (Opec) and other producers, including Russia, agreed last year to cut output almost 1.8 million barrels per day (bpd) during the first half of 2017.
Estimates indicate compliance with the cuts is at around 90 percent, while Reuters reported last week that Opec could extend the pact or apply deeper cuts from July if global crude inventories fail to drop enough.
But rising US output helped boost crude and gasoline inventories to record highs last week, amid faltering demand growth for the motor fuel.
Hedge funds and other money managers raised their net long US crude futures and options positions in the week to Feb.14 to a new record high, data from the US Commodity Futures Trading Commission (CFTC) showed on Friday.
The increase in long positions leaves the market vulnerable to a downward correction, analysts have said.
The US market will be closed on Monday for the President's Day holiday.