How do you get e-coli in a blood culture?

Multiple ways. A few organisms may show up in blood culture due to transient bacteremia in an otherwise normal person. This may be due passing hard stool. More commonly e coli cause infections in various sites, most commonly, urinary tract, and then invade the blood stream and cause septicemia/sepsis with meaningful growth in blood culture.