# Nginx Module (Filebeat) getting data from another server

**URL:** <https://discuss.elastic.co/t/nginx-module-filebeat-getting-data-from-another-server/195130>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [August 14, 2019, 3:33am UTC](https://discuss.elastic.co/t/nginx-module-filebeat-getting-data-from-another-server/195130 "2019-08-14T03:33:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [August 14, 2019, 3:33am UTC](https://discuss.elastic.co/t/nginx-module-filebeat-getting-data-from-another-server/195130/1 "2019-08-14T03:33:38Z")

</div>

I am trying to resolve the following case.

I have my ES, filebeat, logstash, and kibana installed and setup on Server A. But now I am trying to activate this "Nginx module" to monitor activities and logs from Server B. After I have activated the module and configured it, I notice it does not able to capture any data.

My logstash also did not received any form of index recorded to the ES.

I also found that there is a difference between ES and Nginx understanding the setting of Remote IP, ES = `remote_ip` whereas Nginx = `$http_x_real_ip` . In the case above, how can I make server B data can be presented to server A?

Second question, is this correct that these modules are needed in the passing of data? Nginx \>\> Filebeat \>\> Logstash \>\> ES \>\> Kibana

Does all these above are used and placed correctly? Is there any settings I need to do ?

When I check on " service filebeat status" It shows me some error msg. -- `File is inactive: /var/log/mysql/error.log. Closing because close_inactive of 5m0s reached.`

Some items are fixed:

- Now I am able to get some data from server B, after removing the old indices and restart elasticsearch and filebeat.

---

<div class="post-metadata">

**Author:** ![skyluke.1987](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@skyluke.1987](https://discuss.elastic.co/u/skyluke.1987)\
**Post date:** [August 14, 2019, 6:20am UTC](https://discuss.elastic.co/t/nginx-module-filebeat-getting-data-from-another-server/195130/2 "2019-08-14T06:20:45Z")

</div>

When I go to the discover page and select "filebeat-\*" there is no record found. May I know how do i check why there is no data coming in?

---

<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:** [September 11, 2019, 6:20am UTC](https://discuss.elastic.co/t/nginx-module-filebeat-getting-data-from-another-server/195130/3 "2019-09-11T06:20:54Z")

</div>

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