ATLANTA (AP) -- Rookie Logan Webb allowed only two hits and one run in six innings, Evan Longoria drove in two runs with two hits and the San Francisco Giants beat Dallas Keuchel and the Atlanta Braves 4-1 on Sunday.
Braves manager Brian Snitker, preparing the NL East champions for the playoffs, rested outfielder Ronald Acuna Jr., third baseman Josh Donaldson and second baseman Ozzie Albies. Albies had his second straight day off before reaching on a pinch-hit single in the ninth.
Webb (2-2) was sharp in his seventh start, preventing the Braves from a three-game sweep in their final regular-season game at SunTrust Park.
Webb struck out seven. He opened the game with five scoreless innings before Adeiny Hechavarria tripled in the sixth and scored on Freddie Freeman's groundout.
Relievers Tyler Rogers and Will Smith closed out the combined five-hitter. Smith pitched the ninth for his 34th save.
After being outscored 14-1 in losing the first two games of the series, the Giants scored three runs in the sixth off Keuchel (8-7).
Longoria was only 2 for 17 on the road trip before driving in Austin Slater with a double to right-center off Keuchel in the sixth. Joey Rickard's double to left field drove in Longoria and Kevin Pillar, who reached on shortstop Dansby Swanson's fielding error.
Longoria added a run-scoring single off Luke Jackson in the seventh.
Rickard and Mike Yastrzemski had two hits.
Webb allowed only one baserunner through four innings before issuing back-to-back walks to Matt Joyce and Tyler Flowers with one out in the fifth. After the right-hander threw two straight balls to Billy Hamilton, pitching coach Curt Young visited the rookie on the mound.
Webb recovered by striking out Hamilton and Keuchel to end the inning.
Swanson hit leadoff for only the second time this season and was 0 for 4 with two strikeouts. He whiffed on Longoria's grounder in the ninth for his second fielding error.
Keuchel allowed three runs, two of them earned, on six hits in six innings.