The invention relates to the technical field of petroleum logging, specifically relates to a cable type hydraulic jar with a through line of a telescopic structure, comprising a first high-temperature-resistant metal joint, a balance shell, the through line, a second high-temperature-resistant metal joint, a mounting pipe, an accelerating cylinder core shaft, an accelerating cylinder shell, a jarshaft, a jar shell, a third high-temperature-resistant metal joint and a fourth high-temperature-resistant metal joint. One end of the through wire is fixed in the first high-temperature-resistant metal joint, and the other end of the through wire penetrates through the second high-temperature-resistant metal joint, the mounting pipe, the jar shaft and the third high-temperature-resistant metal joint to the fourth high-temperature-resistant metal joint. A section of through line is coiled between the first high-temperature-resistant metal joint and the second high-temperature-resistant metal joint, and a section of through line is coiled between the third high-temperature-resistant metal joint and the fourth high-temperature-resistant metal joint, so that the elongation of the through lineis compensated. Due to the compensation amount of the through line, when the instrument is moved long, the through line cannot be snapped, and therefore the whole action of the instrument cannot be affected.