Welcome! Log In Create A New Profile

Advanced

Nginx error log parser

mohit Agrawal
January 10, 2018 03:46AM
Hi ,

I am looking to parse nginx error log so as to find out which particular IP
is throttled during specific amount of time on connection throttling /
request throttling. The format looks like :

2018/01/10 06:26:31 [error] 13485#13485: *64285471 limiting
connections by zone "rl_conn", client: xx.xx.xx.xx, server:
www.xyz.com, request: "GET /api/xyz HTTP/1.1", host: "www.xyz.com"

And the sample that I am looking for is :

{client: "xx.xx.xx.xx", server: "www.xyz.com", host: "www.xyz.com",
"request": "GET /api/xyz HTTP/1.1", reason: "limiting connections by
zone "rl_conn""}

so that I can pass it through ELK stack and find out the root ip which is
causing issue.


--
Mohit Agrawal
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx error log parser

mohit Agrawal January 10, 2018 03:46AM

Re: Nginx error log parser

Aziz Rozyev January 10, 2018 04:36AM

Re: Nginx error log parser

Aziz Rozyev January 10, 2018 04:58AM

Re: Nginx error log parser

mohit Agrawal January 10, 2018 06:38AM

Re: Nginx error log parser

Aziz Rozyev January 10, 2018 06:44AM

Re: Nginx error log parser

mohit Agrawal January 10, 2018 06:48AM

Re: Nginx error log parser

Aziz Rozyev January 10, 2018 07:16AM

Re: Nginx error log parser

mohit Agrawal January 10, 2018 07:26AM

Re: Nginx error log parser

mohit Agrawal January 10, 2018 09:00AM

Re: Nginx error log parser

Aziz Rozyev January 11, 2018 03:58AM

Re: Nginx error log parser

mohit Agrawal January 11, 2018 06:44AM

Re: Nginx error log parser

itpp2012 January 10, 2018 07:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready