Cordylocera elegans is a species of beetle in the family soldier beetles.