Evan Longoria hit a grand slam and the Major League Baseball All-Stars survived a late rally to beat a split Japan squad 8-7 in an exhibition game on Tuesday ahead of their five-game postseason tour.

The MLB All-Stars scored two runs in the fourth inning and Longoria made it 6-0 with a blast over the centerfield wall in the fifth inning at Koshien Stadium.

Salvador Perez hit a solo homer in the sixth, and Hiroki Uemoto drove in a run in the bottom of the sixth, but the All-Stars responded when Dexter Fowler hit a solo shot in the seventh to make it 8-1.

But the hosts rallied, scoring five runs in the seventh, and another in the eighth to make it a one-run game.