Grant attacked Lee 8 times at Petersburg and was successful only on the 8th attack breakthrough.
I am going to assume you are talking about what are classified as the 8 offensives (which involved more than 8 battles).
1st. Mid June attack on Petersburg.
Failure for Grant
2nd. Late June: Grant send forces to capture Jerusaleum Plank Road and Weldon Railroad; AP Hill counterattacks; US captures road but not rail.
Partial success for Grant.
3rd. July 1864: The Crater.
Failure for Grant.
4th. August 1864: Grant sends Warren to take Weldon railroad; AP Hill counterattacks; Warren holds.
Success for Grant.
5th. Late September/Early October: US attacks Fort Harrison near Richmond and Peebles Farm south of Petersburg; captures both places; Lee counterattacks and fails.
Success for Grant.
6th. Late October 1864: Hancock tries to capture Boydton Plank Road; Heth counterattacks and defeats Hancock.
Failure for Grant.
7th. February 1865: Warren moves to Hatchers Run; Gordon counterattacks.
Partial success for Grant
8th. March-April 1865: Fort Stedman, Five Forks, Fort Gregg.
Complete success for Grant.