The duration of herpes on the anus can vary. Generally, an outbreak can last from a few days to a couple of weeks. However, the virus remains in the body for life and can cause recurrent attacks in the future.