AP Sports Writer
LOS ANGELES (AP) -- A black cowboy hat rested in Paul Goldschmidt's locker, although he really was the good guy for the Arizona Diamondbacks.
Goldschmidt homered twice, including a tie-breaking shot for the third straight game, in a 3-2 victory over the slumping Los Angeles Dodgers on Wednesday night. He is batting .458 with four homers and 11 RBI in six games against the Dodgers so far this season.
His first homer, a two-run shot in the sixth, came off Clayton Kershaw, ending a 1 for 16 showing against the Dodgers ace.
"I knew my numbers weren't good," Goldschmidt said. "You got to go up there and have good at-bats. He really doesn't make many mistakes. He mixes it up. It's not a guy you're going to get a lot of hits off of."
Goldschmidt homered to left field in the eighth on a fastball from Kenley Jansen with two outs to snap a 2-all tie. It was the first multi-homer game of his career.
"Obviously you're excited," he said. "I knew it was going to be close. I couldn't see it so I looked at the umpire and he said it was good."
The D-backs completed a three-game sweep of the Dodgers, who have dropped a season-high seven straight games and committed three errors on Wednesday.
"I'm frustrated and I think the rest of the team is, too. It's no fun to come to the park and lose every single day," Kershaw said. "There are a lot of expectations of this team, and the talent's there. We're just not winning games."
Wade Miley (3-1) outlasted Kershaw in a matchup of two of the best left-handed starters in the NL over the past two seasons.
Miley allowed two runs and seven hits in 7 2/3 innings -- his longest outing of the season -- struck out four and walked none to win for the first time since April 10. He worked quickly, with four 11-pitch innings.
"Just quit thinking," Miley said of the adjustment he made. "I went after guys. I was able to have it in and out more than I had in the past. Everything had been going to the middle."
Heath Bell pitched the ninth to earn his third save in four chances.
He was called upon after closer J.J. Putz went on the 15-day DL earlier in the day with a strained right elbow that he hurt in the ninth on Tuesday.
"J.J.'s our closer," Bell said before the game. "Even if he's out for two weeks or three weeks, we're just like a Band-Aid until he gets back. Even if it's a month or so, he's still our closer and he's still our guy."
Jansen (1-1) took the loss, giving up one run and one hit in one inning. He struck out two and walked none.
Kershaw allowed two runs -- one earned -- and five hits in seven innings. The left-hander struck out four and walked one. He has three no-decisions in his past four starts.
Matt Kemp and Andre Ethier were a combined 2 for 8 with three strikeouts for the Dodgers, who have yet to win this month.
"Everybody knows what we need to do, and that's score runs and get those big hits," Kemp said. "But we're not doing it right now. We all need to get on the same page and get this thing going."
Arizona tied the game at 2-all on Goldschmidt's first homer in the sixth. Didi Gregorius reached on a throwing error by shortstop Dee Gordon to open the inning and Goldschmidt followed with his second two-run shot of the series. His other one snapped a tie in the ninth on Tuesday and gave the D-backs a 5-3 victory.
"He's their guy over there right now. He's swinging the bat really well, so that's my fault," Kershaw said. "I've had some success against him, but he's their three-hole hitter and he's swinging the bat really well right now."
The Dodgers led 2-0 on RBI doubles by Nick Punto and Adrian Gonzalez that both found the right field corner in the fourth. In the fifth inning, Gonzalez left the game after aggravating a strained neck muscle when he dived for a pop foul by Will Nieves.
Notes: The D-backs recalled RHP Will Harris from Triple-A Reno to fill Putz's roster spot. ... It was the third series this season and second straight in which the Dodgers have been swept. ... Kershaw is one out shy of reaching 1,000 innings in his career, which would make him the 38th pitcher to toss that many for the Dodgers since 1900. ... Gonzalez turned 31 on Wednesday.
Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.