PHOENIX -- Logan Schafer had two hits, scored twice and drove in two runs and Wily Peralta extended his scoreless streak to 19 2/3 innings before giving up a run as the Milwaukee Brewers finished the first half with a 5-1 victory over the Arizona Diamondbacks.
Schafer singled and scored in the first inning, sacrificed home a run in the second and hit his second home run of the season in the fifth to help the Brewers (38-56) break a three-game losing streak.
Peralta (7-9) gave up seven hits and struck out eight for his second straight victory. His 2-0 shutout over Cincinnati last Tuesday snapped the Brewers' major league-record streak of 407 games without a complete game.
Miguel Montero stopped Peralta's scoreless streak with a home run leading off the fifth inning to make it 5-1. Montero had homers in consecutive games for the first time since July 31-Aug. 1, 2012.
Milwaukee All-Star shortstop Jean Segura had three hits and a walk, finishing the first half with an National League-high 121 hits.
Leadoff hitter Norichica Aoki had two hits and scored a run, and the first four batters in the Brewers' order were 8-for-15 with four runs and four RBIs.
Paul Goldschmidt and Aaron Hill had two hits apiece for Arizona (50-45), which had won three in a row and eight of its last 11 and will enter the break leading the NL West.
Aoki, Schafer, Segura and Carlos Gomez opened the game with singles against Ian Kennedy (3-6), who has not won in seven starts since June 1. Gomez's single drove in two runs, and a third run scored on an infield groundout.
Schafer had a sacrifice bunt with runners on the corners to drive in a run for a 4-0 lead in the second, and he led off the fifth with a homer off Kennedy for a 5-0 lead
NOTES: As expected, LF Ryan Braun was not with the Brewers on Sunday, remaining on the bereavement list. Manager Ron Roenicke said he expects Braun to return for the Miami series that begins Friday in Miller Park. ... The Diamondbacks were seeking a season sweep of the Brewers after taking a three-game series April 5-7 in Milwaukee. ... Arizona has won 50-plus games at the All-Star break for the fifth time. The franchise record is 52, set in 2003. ... Diamondbacks manager Kirk Gibson set his rotation for the three-game series at San Francisco immediately after the All-Star break: RHP Ian Kennedy on Friday, LHP Wade Miley on Saturday and RHP Randall Delgado on Sunday. All-Star LHP Patrick Corbin will start against July 23, Gibson said, to give him a break after throwing 130-plus innings. ... Arizona LHP Eury De La Rosa made his major league debut and retired all six batters he faced, including three strikeouts.