Welcome! Log In Create A New Profile

Advanced

Nginx Log File from Specific PathName in link

April 19, 2018 08:53AM
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
Subject Author Posted

Nginx Log File from Specific PathName in link

Xander2020 April 19, 2018 08:53AM

Re: Nginx Log File from Specific PathName in link

gariac April 19, 2018 03:48PM

Re: Nginx Log File from Specific PathName in link

Xander2020 April 20, 2018 10:59AM

Re: Nginx Log File from Specific PathName in link

tangyan April 22, 2018 02:16AM

Re: Nginx Log File from Specific PathName in link

Xander2020 April 22, 2018 03:37AM

Re: Nginx Log File from Specific PathName in link

Xander2020 April 23, 2018 12:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 160
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready