To identify bad bots, you have to use hosting like Cloudways, which provides monitoring service. Also, apart from this, if you ever use a CDN service like Cloudflare, these user agents, countries, paths etc. Shows other reports.
You will get to know robots in its User Agent section, you can block them by detecting bad bots. Or if you search "bad bots list" in Google, you will get a list of popular bad bots. But the method of analysis is better for which bots are attacking our site.