Quantcast
Viewing latest article 26
Browse Latest Browse All 35

How to parse Apache access log for 404s not from bots?

The regex is easy for 404s in a typical Apache log:

grep ' 404 ' access_log

But many are coming from bots, which I don't care about. I'm looking for actual people hitting 404s. So I'm trying to negate the term 'bot', which comes later in the line, but nothing's working. Any ideas?


Viewing latest article 26
Browse Latest Browse All 35

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>