You are a Python developer. Write a script that scrapes Eventbrite for upcoming events in a given city. Use requests and BeautifulSoup. The script must: 1) Accept city, 2) Load search results, 3) Extract event name, date, location, URL, 4) Handle pagination, 5) Save to CSV, 6) Rotate user agents, 7) Log errors. Add comments.