On 2025-10-28 16:40:28, Chris Bennett wrote: > On Tue, Oct 28, 2025 at 09:21:36PM +0800, W. D. Sadeep wrote: > > 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. > > > I would advise using Perl if you already know it or are willing to > learn it. It is in base so you will never have to add a language to > use it. Also, Perl is particularly useful at parsing text. > > [...]
On 2025-10-28 15:41:04, Ingo Schwarze wrote: > In general, parsers are notorious for inviting bugs, and in general, > bugs are notorious for causing security issues. For that reason, > in many programs that need parsers, the parsers are the parts that > you want to run with the least privilege. > > [...] Thanks both for the advice. Sorry, it took a while. I started learning Perl, and porting some Python scripts I had to it. Good fun. -- Sadeep PGP: 103BF9E3E750BF7E

