Glamorgan reach 63-1 in their second innings, 106 ahead, after career-best centuries from Gloucestershire's Benny Howell and James Bracey.
Gloucestershire's Benny Howell hits 96 in their total of 161-1 in reply to Glamorgan's 442, Kiran Carlson ending on 191.
Kiran Carlson's career-best 137 not out and 84 from Andrew Salter help Glamorgan recover to 342-7 against Gloucestershire.
Half-centuries from Gareth Roderick and Cameron Bancroft help Gloucestershire out of danger and to a draw with Kent.
Audio & Video
Watch highlights as Jacques Rudolph and David Miller inspire Glamorgan to a 25 run victory over Gloucestershire in their T20 Blast South Group game.
Analysis and opinion from the BBC's cricket correspondent.
Follow a summer of cricket on the BBC
BBC Sport brings you live radio commentary plus online video clips and highlights from England's summer of cricket.
Cricket alerts, newsletters and social media
Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online.
How to get into Cricket
How to get into cricket - physical exertion with a chess-like element in matches which range from half an hour to five days.