Surviving death

The death of a loved one, or having serious health problems oneself, has a way of highlighting the pettiness and pointlessness of much of daily life. What things might survive death? Personal afterlife (liberation, redemption, salvation, etc., depending on your views) and personal legacy (e.g., children and their inheritence, one’s own tangible and intangible contributions to the world, maybe choosing to live/die in a location where one would like to be reborn, etc.) are the main things I can think of. Except as things pertain to either afterlife or legacy, most everything else seems like short-term issues about which one shouldn’t get too stressed or invested.