srini_kandimalla
asked on
Apache pipe logging problem on Solaris
Hi,
I am changing the TranferLog to CustomLog for Apache logging using the pipe to avoid the big size log problem.
This is on Solaris.
In the following code segment in httpd.conf, I commented the Transfer log, but added the CustomLog.
The access log is getting created with TransferLog, but the same access.log is not being created in case of CustomLog. I follwed the Apache.org and addet the CustomLog statemet as shown below.
I also tried the CustomLog's access.log path with logs/access.log, similar to TransferLog.
<VirtualHost *:9820>
#TransferLog logs/access.log
CustomLog "|/opt/xyz/xxx/apache/bin/ logresolve >> /opt/xyz/xxx/apache/logs/a ccess.log" common
ErrorLog logs/error.log
</VirtualHost>
the error_log is showing the following errors
ld.so.1: logresolve: fatal: libgcc_s.so.1: open failed: No such file or directory
ld.so.1: logresolve: fatal: libgcc_s.so.1: open failed: No such file or directory
piped log program '/opt/xyz/xxx/apache/bin/l ogresolve >> /opt/xyz/xxx/apache/logs/a ccess.log' failed une
xpectedly
Thanks
I am changing the TranferLog to CustomLog for Apache logging using the pipe to avoid the big size log problem.
This is on Solaris.
In the following code segment in httpd.conf, I commented the Transfer log, but added the CustomLog.
The access log is getting created with TransferLog, but the same access.log is not being created in case of CustomLog. I follwed the Apache.org and addet the CustomLog statemet as shown below.
I also tried the CustomLog's access.log path with logs/access.log, similar to TransferLog.
<VirtualHost *:9820>
#TransferLog logs/access.log
CustomLog "|/opt/xyz/xxx/apache/bin/
ErrorLog logs/error.log
</VirtualHost>
the error_log is showing the following errors
ld.so.1: logresolve: fatal: libgcc_s.so.1: open failed: No such file or directory
ld.so.1: logresolve: fatal: libgcc_s.so.1: open failed: No such file or directory
piped log program '/opt/xyz/xxx/apache/bin/l
xpectedly
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Finally I copied libgcc_s.so.1 to /usr/lib. Then it start working.