Masahiro Tanaka pitched effectively into the seventh inning, Aaron Judge broke out of his slump with two hits and two runs, and the New York Yankees rebounded from their worst home loss of the season with a 3-2 victory over the Cleveland Indians on Friday night.

New York (82-42) clinched its 27th consecutive winning record since 1993, the second-longest streak in major league history behind the Yankees' run of 39 seasons from 1926-64.

More Images
New York Yankees' Aaron Judge follows through on a single during the first inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Masahiro Tanaka pitched effectively into the seventh inning, Aaron Judge broke out of his slump with two hits and two runs, and the New York Yankees rebounded from their worst home loss of the season with a 3-2 victory over the Cleveland Indians on Friday night.

New York Yankees' Didi Gregorius, left, celebrates with Cameron Maybin after a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Cleveland, neck-and-neck with Minnesota atop the AL Central and leading the wild-card standings, lost for only the fourth time in its last 19 road games. The Indians are a big league-best 45-19 since June 4.

Cleveland Indians' Yasiel Puig hits a home run during the seventh inning of a baseball game against the New York Yankees, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Cleveland Indians' Yasiel Puig hits a home run during the seventh inning of a baseball game against the New York Yankees, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Aaron Judge runs past third base on his way to scoring on a single by Gio Urshela during the fifth inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Aaron Judge runs past third base on his way to scoring on a single by Gio Urshela during the fifth inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Cleveland Indians' Aaron Civale delivers a pitch during the first inning of a baseball game against the New York Yankees, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Cleveland Indians' Aaron Civale delivers a pitch during the first inning of a baseball game against the New York Yankees, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Gio Urshela follows through on a single during the first inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Gio Urshela follows through on a single during the first inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Aroldis Chapman delivers a pitch during the ninth inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Aroldis Chapman delivers a pitch during the ninth inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Gary Sánchez and Gleyber Torres each had an RBI single for the AL East leaders, who increased their cushion to 10½ games over Tampa Bay. They won for the 15th time in 18 tries and bounced right back from a 19-5 defeat Thursday night in the opener of this four-game series.

New York Yankees' Aaron Judge follows through on a single during the first inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Aaron Judge follows through on a single during the first inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Cleveland, neck-and-neck with Minnesota atop the AL Central and leading the wild-card standings, lost for only the fourth time in its last 19 road games. The Indians are a big league-best 45-19 since June 4.

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports

New York Yankees' Didi Gregorius, left, celebrates with Cameron Maybin after a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Didi Gregorius, left, celebrates with Cameron Maybin after a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Cleveland Indians' Yasiel Puig hits a home run during the seventh inning of a baseball game against the New York Yankees, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Cleveland Indians' Yasiel Puig hits a home run during the seventh inning of a baseball game against the New York Yankees, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Aaron Judge runs past third base on his way to scoring on a single by Gio Urshela during the fifth inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Aaron Judge runs past third base on his way to scoring on a single by Gio Urshela during the fifth inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Cleveland Indians' Aaron Civale delivers a pitch during the first inning of a baseball game against the New York Yankees, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

Cleveland Indians' Aaron Civale delivers a pitch during the first inning of a baseball game against the New York Yankees, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Gio Urshela follows through on a single during the first inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Gio Urshela follows through on a single during the first inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Aroldis Chapman delivers a pitch during the ninth inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)

New York Yankees' Aroldis Chapman delivers a pitch during the ninth inning of a baseball game against the Cleveland Indians, Friday, Aug. 16, 2019, in New York. (AP PhotoFrank Franklin II)