Updated

Masahiro Tanaka pitched into the seventh inning, Yangervis Solarte hit a three-run homer and the New York Yankees beat the Milwaukee Brewers 5-3 on Friday night.

It was New York's first game in Milwaukee since 2005, and Yankees captain Derek Jeter got an unusual greeting when a fan jumped out of the left-field stands and walked briskly toward his spot at shortstop in the sixth inning.

Jeter didn't appear to notice until the fan was within an arm's length or so. Jeter, who plans to retire after this season, calmly took a few steps away as several security guards rushed in to tackle the person.

Tanaka (5-0) allowed two runs and seven hits in his first interleague game. The Japanese right-hander struck out seven and walked one.

Tanaka also struck out in each of his first three major league at-bats.

Yovani Gallardo (2-2) matched Tanaka pitch for pitch until New York scored four times in the fourth on four hits, highlighted by Solarte's second home run of the season. Carlos Beltran walked and Brian McCann singled before Solarte hit Gallardo's first pitch over the right-field wall.

The Yankees tacked on an insurance run in the eighth inning. Beltran hit a leadoff double against Brandon Kintzler, and Ichiro Suzuki then came in to run. Suzuki stole third and scored on Mark Teixeira's roller down the first-base line, making it 5-2.

The Brewers got on the board in the sixth. Carlos Gomez and Scooter Gennett started the inning with consecutive doubles, and Jonathan Lucroy followed with an RBI single.

Tanaka then got Aramis Ramirez to ground into a double play and struck out Mark Reynolds.

Adam Warren took over for Tanaka after he put runners on the corners in the seventh. Warren struck out pinch-hitter Lyle Overbay and Logan Schafer was cut down while trying to steal second.

David Robertson allowed Reynolds' sixth homer in the ninth, but struck out the side for his sixth save.

Solarte has been swinging a hot bat on the Yankees' current six-game road trip. He came in 4 for 8 with two runs scored and an RBI.

NOTES: Gomez's appeal hearing of his three-game suspension for a bench-clearing brawl in Pittsburgh on April 20 was Friday. It went OK, according to what manager Ron Roenicke heard in the clubhouse. "They should have a decision here in a few days," he said. ... The Miller Park roof was open for the first time in 19 games this season. ... Jeter received a loud round of applause from the near sellout crowd of 40,123 when the starting lineup was announced and again when he batted in the first. The Brewers plan to honor him before Sunday's game. ... Yankees LHP CC Sabathia (3-4, 5.75 ERA) faces Brewers RHP Kyle Lohse (4-1, 2.72 ERA) on Saturday night. ... The University of Wisconsin men's basketball 2014 Final Four team and coach Bo Ryan were honored in a pregame ceremony. Eighteen ceremonial first pitches were tossed as the team and staff stretched from third base to first across the mound.