Hey,
I was trying to use the split-logfile script/command that comes with Apache but this is not available on my machine, can someone please help me with this?
Configuration:
OS: AlmaLinux release 9.6 (Sage Margay)
HTTP: Apache/2.4.62 (AlmaLinux)
I searched for this file but it’s not available anywhere on my system, installed the Apache using OS repository.
[root@****** ~]# find / -name split-logfile 2>/dev/null
[root@******~]#
Hi @iamlinux89!
Try this:
curl -O https://downloads.apache.org/httpd/httpd-2.4.62.tar.gz
tar xzf httpd-2.4.62.tar.gz
cd httpd-2.4.62/support
awk '{ print >> $1".log" }' access_log
All the best! 
But why this is not available from the repository…
https://scripts.mit.edu/trac/browser/trunk/server/fedora/specs/httpd.spec.patch?rev=1607&utm_source
No primary source was found.
However, I found a description in the spec file that said to introduce all the formulas
and not use rpm.
Apache docs say that ‘split-logfile’ is a Perl script. As is, the ‘httpd’ package does not depend on Perl. If the script would be in httpd packages, then they should require perl.
Naturally, there could be optional package ‘httpd-something’ with Perl script(s) in it. There is not, most likely because Red Hat has not made one for RHEL. Why they chose to omit some scripts/dependencies? Ask them.