Here's an example Nginx log format:
log_format mylog '$request $request_time ms'
which will show something like GET /foo 10 ms and would be nicer if it showed GET /foo 10ms
Is there any way to remove the space after the $request_time variable. e.g. something like bash's ${request_time}ms.
To my surprise, the bash style actually works 😊
log_format mylog '$request ${request_time}ms'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With