Hello,
I am developing docker image of openlitespeed which will be used for kubernetes. One of the requirement to run openlitespeed in kubernetes is to change logging to use stdout and stderr.
I am trying to implement it from template config like this:
But web server log still not redirected to stdout or stderr.
And i am trying to replace log setup at httpd_config.conf at
/usr/local/lsws/conf/httpd_config.conf to use /dev/stdout and /dev/stderr, it is failing too.
I am also trying to use symbolic linking but it is still failing.
Anyone know how to set openlitespeed access log to stdout and error_log to stderr ?
Regards,
findnull44
I am developing docker image of openlitespeed which will be used for kubernetes. One of the requirement to run openlitespeed in kubernetes is to change logging to use stdout and stderr.
I am trying to implement it from template config like this:
Code:
`
errorlog /dev/stderr {
useServer 0
}
accesslog /dev/stdout {
useServer 0
#rollingSize 100M
#keepDays 7
#compressArchive 1
}
But web server log still not redirected to stdout or stderr.
And i am trying to replace log setup at httpd_config.conf at
/usr/local/lsws/conf/httpd_config.conf to use /dev/stdout and /dev/stderr, it is failing too.
Code:
sed -i "s#errorlog logs/error.log#errorlog /dev/stderr#g" /usr/local/lsws/conf/httpd_config.conf
sed -i "s#accessLog logs/access.log#accessLog /dev/stdout#g" /usr/local/lsws/conf/httpd_config.conf
I am also trying to use symbolic linking but it is still failing.
Code:
ln -sf "/dev/stdout" /usr/local/lsws/logs/access.log
ln -sf "/dev/stderr" /usr/local/lsws/logs/error.log
ln -sf "/dev/stderr" /usr/local/lsws/logs/stderr.log
Anyone know how to set openlitespeed access log to stdout and error_log to stderr ?
Regards,
findnull44
Last edited: