As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
AFTER TAKEOFF RIGHT ENGINE EXPERIENCED COMPRESSOR STALLS. RIGHT EGT STARTED TO FLUCTUATE FOLLOWED BY VIBRATIONS AND POPPING SOUNDS. THE TOWER REPORTED FLAMES FROM RIGHT ENGINE. ENGINE WAS SHUT DOWN, EMERGENCY DECLARED AND FLIGHT LANDED WITHOUT INCIDENT. REMOVED AND REPLACED NR 2 ENGINE IAW ALERT K179063.