MIAMI (AP) Tom Koehler tied career-highs with 10 strikeouts over eight innings and Christian Yelich had a tiebreaking two-run double in the seventh inning, and the Miami Marlins beat the Milwaukee Brewers 5-2 on Wednesday night.

Koehler (9-13) won for the first time since July 23, at San Diego, ending a seven-game losing streak. He allowed two runs, four hits and two walks.

He threw 68 of his 104 pitches for strikes before turning it over to A.J. Ramos, who pitched the ninth for his 25th save in 31 chances.

More from FoxSports

Martin Prado drove in the other three runs for the Marlins with a two-run single in the third and an RBI double later in the seventh that scored Yelich.

Ariel Pena of the Brewers was effective in his first major league start, pitching five innings and allowing two runs, three hits and four walks. He struck out four.

Tyler Cravy (0-6) walked Miguel Rojas with one out in the seventh. Koehler, with 89 pitches to his credit, stayed in to hit and laid down a successful sacrifice bunt with two strikes.

Will Smith relieved Cravy and walked Dee Gordon before Yelich lined a double to left-center that drove in Rojas and Gordon for a 4-2 lead.

Prado followed with a double that scored Yelich and pushed the lead to 5-2.

Milwaukee's Scooter Gennett led off the game with a base hit and scored on a double play.

Catcher Nevin Ashley, playing for the injured Jonathan Lucroy, registered his first major league hit with an RBI double in the second to give the Brewers a 2-0 lead.

Prado's two-run single in the third tied the game 2-2.

Koehler was particularly sharp over the middle innings retiring 11 consecutive batters at one point including striking out the side in the fifth.

TRAINER'S ROOM

Brewers: Lucroy suffered a mild concussion in Tuesday's game against the Marlins after taking a foul ball off his mask. Lucroy is currently being evaluated by doctors as part of the concussion protocol. He has to be cleared by the doctors before he can return to the lineup. ''Most likely a couple of days,'' Brewers manager Craig Counsell said. ''It could be a day, but most likely a couple of days.''

Marlins: RHP Jose Fernandez (biceps strain) threw a bullpen session Wednesday and is on track to start Saturday against Washington, his first since Aug. 7. ''He threw the ball very well getting in line for Saturday so it looks like all systems are go there,'' Marlins manager Dan Jennings said. ''He'll be ready to toe the rubber and pitch against the Nationals.'' . SS Adeiny Hechavarria (hamstring) has missed the last five games.

NEXT UP

Brewers: RHP Wily Peralta (5-8, 4.21 ERA) will get the nod Thursday to begin a four-game set at Pittsburgh. Pirates RHP A.J. Burnett (8-5, 3.06) will oppose Peralta.

Marlins: The team is off Thursday and will begin a three-game series at home against Washington on Friday with RHP Jarred Cosart (1-4, 5.04) on the mound to face LHP Gio Gonzalez (10-7, 3.96).