Discharge in my 4 year old

Is this normal for a 4 year old girl???

I just noticed this in my daughters underwear it looks kinda greenish yellowish. She was laying down squeezing her legs so I thought she needed to use the bathroom so she went then She said she was hurting down there I checked & she is a bit red like a small rash. Should I be worried?????