Tuesday, October 28, 2025

Is is safe to parse httpd access logs?

Dear list,

I'm thinking of parsing the /var/www/logs/access.log from httpd for
purposes like identifying bot activity using fgrep, grep, cut, sed,
sort, and uniq.

Is it safe to do that in a cron job?

I see requests that appear to embed scripts. So, I'm wondering if it's
naive to parse them like that.

If that's the case, are there any precautions I can take?

--
W. D. Sadeep
PGP: 103BF9E3E750BF7E

No comments:

Post a Comment