# How to index ngnix log file?

**URL:** <https://discuss.elastic.co/t/how-to-index-ngnix-log-file/126375>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 2, 2018, 5:49am UTC](https://discuss.elastic.co/t/how-to-index-ngnix-log-file/126375 "2018-04-02T05:49:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nandan\_bigdata](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nandan\_bigdata](https://discuss.elastic.co/u/nandan_bigdata)\
**Post date:** [April 2, 2018, 5:49am UTC](https://discuss.elastic.co/t/how-to-index-ngnix-log-file/126375/1 "2018-04-02T05:49:03Z")

</div>

Hi ,  
I have a 50MB log file from ngix which I want to index into Elasticsearch for better understanding about errors/warning or other information.  
Please tell me how to do this.

Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 2, 2018, 7:21am UTC](https://discuss.elastic.co/t/how-to-index-ngnix-log-file/126375/2 "2018-04-02T07:21:17Z")

</div>

You can use filebeat to send the logs to elasticsearch.  
If you activate the nginx module, most of the configuration work will be done for you.

I'm moving your question to #beats:filebeat

---

<div class="post-metadata">

**Author:** ![nandan\_bigdata](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nandan\_bigdata](https://discuss.elastic.co/u/nandan_bigdata)\
**Post date:** [April 2, 2018, 7:26am UTC](https://discuss.elastic.co/t/how-to-index-ngnix-log-file/126375/3 "2018-04-02T07:26:24Z")

</div>

I never used Filebeat.  
But I will try now to install it in window locally and then I will try to do it.  
Thanks .

---

<div class="post-metadata">

**Author:** ![nandan\_bigdata](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nandan\_bigdata](https://discuss.elastic.co/u/nandan_bigdata)\
**Post date:** [April 2, 2018, 8:01am UTC](https://discuss.elastic.co/t/how-to-index-ngnix-log-file/126375/4 "2018-04-02T08:01:42Z")

</div>

Will you please tell me how to configure Filebeat and logstash for Ngnix logs ?

---

<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:** [April 30, 2018, 8:01am UTC](https://discuss.elastic.co/t/how-to-index-ngnix-log-file/126375/5 "2018-04-30T08:01:55Z")

</div>

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