If you get yellow eye discharge, it is most likely that you are suffering from a type of bacterial conjunctivitis. If so, it is dangerous to the eyes. And this phenomenon won't go themselves. If you have a excessive yellow eye discharge, you'd better take the child to see their pediatrician, ophthalmologist or optometrist. They can get your eyes checked and prescribed the right medicine to help you.
As we know that eye discharge is yellowish, sticky, crusty substances that can sometimes make your eyes feel glued shut. It can be temporary such as when you wake up in the morning, or persistent in which medical attention should be considered. Usually the eye discharges are harmless and it is part of your body's natural defense system. Serious causes of eye discharge can be associated with medical conditions such as Conjunctivitis and corneal ulcers. So, you should first know the reason of your yellow eye discharge is, and then you can treat it as soon as possible.