in your nginx
config for mastodon add after the /api/v1/streaming
block:
location /api/v2/search {
access_log off;
try_files $uri @proxy;
}
sanitize your logs:
sed -i '/\/api\/v2\/search\?/d' /var/log/nginx/access.log{,.?}`
— :blobgoat: