What is this

I have been having this discharge for almost a month. Sometimes it’s combined with white discharge I have it on and off every like two weeks and I don’t know what it is. Could I have an infection? At first I thought it was blood but it smells like discharge