Hi, I'm trying to exclude as many crawl bots from my search and show only human hits on our website. I found the search code below when googling, but it shows me all the non-human sessions. Can anyone explain how to exclude these sessions? Or another way of showing all non-bot traffic? Thanks!
index="main" sourcetype="access_combined"
| eval usersession=clientip + "_" + useragent
| sort usersession, _time
| delta _time as visit_pause p=1
| streamstats current=f window=1 global=f last(usersession) as previous_usersession
| eval visit_pause=if(usersession==previous_usersession, visit_pause, -1)
| search visit_pause!=-1
| stats var(visit_pause) as variance by usersession
| search variance<5
Hello, Anyone?