How do I figure out what is negatively affecting my gut and causing discomfort?

Nutrition intervention through an elimination diet is the best way to determine what is benefiting the gut and what is harming it. For guidance on how to start an elimination diet, check out this article: Which Foods are Causing Your Discomfort? A Test May Not Be Able to Tell You.