【Elegy】 refers to a poem of lament or praise for a dead person.
【Eulogy】 refers to speech or writing in praise of someone, usually dead.