The killer in Jigsaw (2017) is Logan Nelson, and the twist is that John Kramer is not alive at all: the games are the work of an apprentice. Spoilers follow.
Why does the film pin everything on Halloran? Because the story is built to make him look guilty. Hunt finds jigsaw shaped flesh in Halloran's freezer, Logan points out that it was Halloran's bullet that hit Edgar, and Edgar's body turns up in John's grave. Each clue pushes Halloran forward as the obvious suspect, while Logan stays in the background as a pathologist who appears to be helping. Logan then reveals that he is the new Jigsaw and that he set Halloran up as revenge for his wife's death at Edgar's hands. Halloran forced Logan to confess first, which broke the rules of the game, so Halloran's collar reactivates and kills him. Logan leaves, saying he speaks for the dead.
How did Logan come to be part of it? He is the unconscious man from the very first barn game, which John spared ten years earlier, making him John's first apprentice. That detail explains why the barn feels so deliberate, and why the tests lean on blood, guilt and confession rather than pure cruelty. Halloran is made to confess to freeing criminals for personal gain, and Logan's own confession, that he mislabeled John's X-rays, is the moment the audience is meant to believe he has died.
How does it compare with the rest of the series? In my opinion, the reveal works best as misdirection: the film invites you to suspect Halloran, then Eleanor, while the real answer sits in the autopsy room. The structure echoes the end of Saw (2004), where a figure everyone assumed was dead rises from the bathroom floor, but Jigsaw swaps that single jolt for a slower trail of clues. It could be argued that the apprentice idea sits awkwardly beside the series history, since mark hoffman saw is the successor who carries on Jigsaw's work in saw 6, and saw 4 opens with John's autopsy and a tape recorder meant for Hoffman. Perhaps the simplest reading is that Logan is a quieter, earlier disciple who stayed hidden while Hoffman and Amanda took the spotlight.
The Spierigs also had to work around a script they did not write, and the result is a puzzle that plays fair on a second viewing: Logan is present in nearly every scene where evidence is found. Compared with the harder edged traps of saw 3d, the silo and the shotgun test feel more like morality plays, and Anna's death when the gun backfires shows that the game punishes the person who lied rather than the person who was lied to.
The ending leaves the Jigsaw legacy alive through a new apprentice and lets the series continue. For where it sits in the larger story, see the saw timeline guide. The next chapter is covered on saw 11.