You asked
Is the canon powershot g5 x mark ii good for vlogging?
Not as a first pick. The G5 X Mark II is a capable 1-inch compact, but its 8.8-44mm lens frames like 24-119mm on full frame. My vlogging checklist suggests around 16-20mm at arm's length, because stabilisation crops in further and a 24mm view ends up tight on your face. The checklist also asks for a screen that flips to the front, a microphone input and light weight. My entry for the G5 X Mark II doesn't mention a flip-up screen, so check that before you buy.
For vlogging, I'd look at the Canon PowerShot G7 X Mark III first. It has a flip-up screen and a bright 24-100mm zoom, and it's a vlogging favourite for good reason. The G5 X Mark II still suits general travel shooting. The older G5 X is more SLR-styled than vlog-friendly. Whichever you pick, plan for sound too, as the audio notes explain.
Written by Claude from this site's pages.