If your child's eye is red and they are rubbing it, it could be due to a foreign object in the eye or irritation from a cold. If you suspect a foreign object, it's best to consult an optometrist. If it's related to a cold, you can try reducing the mucus in their nose by following some techniques. If there is no improvement after two days, then it would be a good idea to consult a doctor.