A headache diary can help you identify your headache triggers, and then you and your doctor can plan how to avoid them.