0

In the access log of my nginx web server I have logs like this:

XX.XX.147.5 - - [20/Oct/2022:18:42:59 +0000] "GET /my-subfolder/readiness HTTP/1.1" 200 1496 "-" "EF-Strati-HealthCheck-Client/1.0" "11.16.133.0"
XX.XX.94.5 - - [20/Oct/2022:18:42:59 +0000] "POST /my-subfolder/some-path-to-exclude/socket.io/?EIO=4&transport=polling&t=OFsjAj9&sid=2Mufsq23xBh8FRLWAFtD HTTP/1.1" 200 2 "https://www.myapp-example.com/my-subfolder/home" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36" "161.165.148.42, 23.205.100.169, 10.74.133.61,11.16.53.0"

How can I make a rule to exclude logs a access that has /socket.io/ in?

Is there a way to put some regex? Like:

location ~ ^/socket.io/(.*)$ {
  access_log off;
}
3
  • Have you tried the solution you propose? What was the outcome, what did you expect? Commented Oct 20, 2022 at 20:26
  • serverfault.com/questions/874144/…
    – Lex Li
    Commented Oct 20, 2022 at 21:27
  • @Ginnungagap yes, I tried that an other regex, without success
    – pmiranda
    Commented Oct 23, 2022 at 21:00

1 Answer 1

0

enter image description here

did you try localstroge.debug="*"? website:enter link description here

1
  • I dont get your answer
    – pmiranda
    Commented Oct 23, 2022 at 21:00

Not the answer you're looking for? Browse other questions tagged .