Don’t use it as a way to count visits, as all these ips are not real visits, but bots, crawlers, etc.
cat access.log | grep -o '\([0-9]\{23\}.\)\{3\}\.[0-9]\{23\}' | sort | uniq | wc -l
Parse Apache access logs to get all ips
by
Tags:
Don’t use it as a way to count visits, as all these ips are not real visits, but bots, crawlers, etc.
cat access.log | grep -o '\([0-9]\{23\}.\)\{3\}\.[0-9]\{23\}' | sort | uniq | wc -l
by
Tags: