Nginx Log File from Specific PathName in link

Gary lists at lazygranch.com
Thu Apr 19 19:45:34 UTC 2018


Why wouldn't you just grep the regular log file? 



  Original Message  
From: nginx-forum at forum.nginx.org
Sent: April 19, 2018 5:53 AM
To: nginx at nginx.org
Reply-to: nginx at nginx.org
Subject: Nginx Log File from Specific PathName in link

Hello everyone , 

Im new here , first post today , been using Nginx for a few years now.

People are POST ing links like this to our server :

POST https://domain.com/name/test/sub/aaa-bbb-ccc 

I want to log in a different file all the links that are having the word :
name in a file called name.log

Eg : From the bellow exemples i should have in the log file name.log only
the first and the last of the links.

POST https://domain.com/name/test/sub/aaa-bbb-ccc 
POST https://domain.com/name3/test/sub/aaa-bbb-ddd 
POST https://domain.com/name2/test/sub/aaa-bbb-zzz
POST https://domain.com/name/test/sub/aaa-bbb-aaa 

Thanks

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279535,279535#msg-279535

_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


More information about the nginx mailing list