openlitespeed icon indicating copy to clipboard operation
openlitespeed copied to clipboard

Accesslog not writing to stdout

Open gazrobur opened this issue 3 years ago • 2 comments

🐛 Bug report 🐛

Issue: Openlitespeed stopped writing accesslog to the console (only error logs are shown). (version 1.7.14)

Config:

errorlog /dev/console {
        logLevel             NOTICE
        debugLevel           0
        rollingSize          10M
        enableStderrLog      1
}

accesslog /dev/console {
        logFormat "%{X-Forwarded-For}i %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"
        rollingSize          10M    
        keepDays             30    
        compressArchive      0
        logReferer           1     
        logUserAgent         1
}

Before: In the previous version of openlitespeed (1.7.11) it just worked. My thought was that something changed what was not documented well.

Please help me to get rid of this problem

gazrobur avatar Oct 08 '21 13:10 gazrobur

It is for security reason, if you want to log to STDOUT, you can use stdout as file name.

litespeedtech avatar Oct 10 '21 13:10 litespeedtech

It is for security reason, if you want to log to STDOUT, you can use stdout as file name.

I tried this but it doesn't work , how writes log to stdout? this is important in a docker environment

GiuseppeIuculano avatar Apr 07 '23 18:04 GiuseppeIuculano

i also have this problem, also see https://github.com/litespeedtech/ols-docker-env/issues/77

psy0rz avatar Apr 03 '24 08:04 psy0rz

accesslog stdout { ... should work now.

litespeedtech avatar Apr 03 '24 13:04 litespeedtech