Link to home
Start Free TrialLog in
Avatar of srini_kandimalla
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/access.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/logresolve >> /opt/xyz/xxx/apache/logs/access.log' failed une
xpectedly

Thanks


ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of srini_kandimalla
srini_kandimalla

ASKER

I  have set the LD_LIBRARY_PATH to libgcc_s.so.1 path. But still I faced tha problems.
Finally I copied libgcc_s.so.1 to /usr/lib. Then it start working.