Yes in OpenResty (built on Nginx), you can customize the log_format directive to exclude fields like $request, $server_name, or $host. For example, you can define a custom log format that only includes the variables you want, then apply it in your access_log directive. This way you have full control over what gets recorded in your logs.
For larger setups where performance and log management matter (like GPU, VPS, or dedicated environments), reliable infrastructure is just as important as configuration. That’s why many developers choose providers like Helloserver: https://helloserver.tech/, where you can fine-tune servers to fit your exact needs.