Dodgers 3, Giants 2

SAN FRANCISCO - The Los Angeles Dodgers moved into a tie with the New York Mets in the overall National League standings Thursday, riding left-hander Brett Anderson's strong pitching to a 3-2 victory over the San Francisco Giants in right-hander Tim Hudson's final game.

Right fielder Andre Ethier tripled, scored Los Angeles' first run and drove in its third, helping the Dodgers complete a 2-5 road trip on a positive note.

The Dodgers (89-70), who have clinched the National League West title, finish the regular season at home with three games against the San Diego Padres.

The Mets (89-70), champions of the NL East, finish at home with three against the Washington Nationals.

The team with the better record at regular season's end will earn home-field advantage in the best-of-5 playoff series between the Dodgers and Mets that begins next Friday. The Mets hold the tie-breaker.

Making his last start before he's expected to get the ball in Game 3 of the playoff series, Anderson had a two-hit shutout going until running into his first trouble of the day in the eighth inning.

Trying to protect a 3-0 lead, Anderson gave up an infield single to Giants center fielder Jarrett Parker, who advanced to second base on second baseman Howie Kendrick's error.

Pinch-hitter Angel Pagan ended Anderson's shutout bid one out later with a single.

Anderson got a second out, but was then pulled in favor or right-hander Chris Hatcher, who allowed an RBI double to Giants second baseman Kelby Tomlinson, trimming the Dodgers' lead to 3-2.

Hatcher then retired Giants third baseman Matt Duffy on a fly to right to end the inning, before closer Kenley Jansen worked a 1-2-3 ninth for his 35th save.

Anderson (10-9), who hadn't won any of his previous three starts, allowed two runs on four hits in 7 2/3 innings. He struck out three and did not walk a batter.

The Dodgers did all their scoring off Hudson in the first three innings.

Ethier led off the second with his triple and dashed home on third baseman Chase Utley's sacrifice fly to left field.

The Dodgers' ended Hudson's day - and his career - in the third when Anderson and Kendrick sandwiched a flyout with singles.

Left-hander Jeremy Affeldt came on to give up a bloop single to Dodgers first baseman Adrian Gonzalez, scoring Anderson, before Kendrick scored as Ethier's fielder's choice groundball plated Kendrick.

Making his 479th start, Hudson (8-9) finished his career with 222 wins. He allowed three runs on three hits and two walks in 2 1/3 innings. He struck out one.

Kendrick had two hits, including a double, for the Dodgers, who won for just the second time at AT&T Park in 10 tries this season.

Tomlinson had a double and a single for the Giants, who won the season series from the Dodgers 11-8.

The Dodgers out-hit the Giants 6-5.

NOTES: Dodgers manager Don Mattingly labeled OF Yasiel Puig's recovery from a hamstring injury "miraculous." He had been placed on the disabled list on Aug. 28. ... Mattingly also announced that LHP Clayton Kershaw's final regular-season start Sunday will have a pitch count. Kershaw is being considered for the series opener against the New York Mets five days later. ... INF Justin Turner, who has a minor knee issue, was not in the Dodgers' starting lineup for the second consecutive day. ... Giants LHP Jeremy Affeldt announced his retirement before the game, effective the end of the season. ... Giants RHP Tim Hudson walked off the mound Thursday tied for the lead among active pitchers in career shutouts (13) and second in games started (479).
Final1st2nd3rd4th5th6th7th8th9thRHE
Los Angeles DodgersDodgers012000000361
San Francisco GiantsGiants000000020250
WP:Brett Anderson (LAD)
LP:Tim Hudson (SF)