# Nginx-status page

**URL:** <https://discuss.elastic.co/t/nginx-status-page/141734>\
**Category:** Elasticsearch\
**Created:** [July 26, 2018, 10:34am UTC](https://discuss.elastic.co/t/nginx-status-page/141734 "2018-07-26T10:34:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sicute](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@sicute](https://discuss.elastic.co/u/sicute)\
**Post date:** [July 26, 2018, 10:34am UTC](https://discuss.elastic.co/t/nginx-status-page/141734/1 "2018-07-26T10:34:11Z")

</div>

Hi ,  
I try grab nginx-status page for metricbeat .  
here my nginx config

[spoiler]cat /etc/nginx/conf.d/xxxxxxxx.conf  
server {  
listen 80 default\_server;  
server\_name xxxxxx;

# if ($http\_x\_forwarded\_proto = 'http') {

# return 301 https://$server\_name$request\_uri;

# }

real\_ip\_header X-Forwarded-For;  
set\_real\_ip\_from 172.xx.0.0/16;

root /home/fedora/webserver/deploy;

index index.html;

location / {

# try\_files $uri $uri/ =404;

```
  proxy_pass http://localhost:3001;
  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection 'upgrade';
  proxy_set_header Host $host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_cache_bypass $http_upgrade;

```

}  
server {  
location /nginx\_status {  
stub\_status on;  
access\_log off;  
allow 127.0.0.1;  
deny all;  
}  
}  
[/spoiler]

cat /etc/metricbeat/modules.d/nginx.yml

- module: nginx  
enabled: true  
metricsets: ["stubstatus"]  
period: 10s

I try grab with curl  
#curl localhost/nginx-status  
#cat /var/log/nginx/access.log  
#127.0.0.1 - - [26/Jul/2018:10:32:05 +0000] "GET /nginx-status HTTP/1.1" 200 790 "-" "Go-http-client/1.1"  
#nginx -V 2\>&1 | grep -o with-http\_stub\_status\_module  
with-http\_stub\_status\_module

so where I can check the error  
thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 23, 2018, 10:34am UTC](https://discuss.elastic.co/t/nginx-status-page/141734/2 "2018-08-23T10:34:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
