# Sending Nginx log to graylog

**URL:** <https://community.graylog.org/t/sending-nginx-log-to-graylog/7655>\
**Category:** Graylog Central (peer support)\
**Created:** [November 15, 2018, 9:55am UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655 "2018-11-15T09:55:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uporaba](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/uporaba/32/11232_2.png) [@Uporaba](https://community.graylog.org/u/Uporaba)\
**Post date:** [November 15, 2018, 9:55am UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655/1 "2018-11-15T09:55:03Z")

</div>

HI everyone. I have 2 server. 1st server is Ngnix logs, 2nd is graylog server. How i can send directly Ngnix logs to graylog?

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [November 15, 2018, 4:29pm UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655/2 "2018-11-15T16:29:49Z")

</div>

he @Uporaba

you can use a content pack like this: [https://marketplace.graylog.org/addons/572ff823-62cc-468e-af17-300bcfd9932d](https://marketplace.graylog.org/addons/572ff823-62cc-468e-af17-300bcfd9932d) and configure the logging like described in the readme.

The other option would be to use a log collector like filebeats to read the log file and deliver it to Graylog.

---

<div class="post-metadata">

**Author:** ![Uporaba](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/uporaba/32/11232_2.png) [@Uporaba](https://community.graylog.org/u/Uporaba)\
**Post date:** [November 19, 2018, 10:02am UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655/3 "2018-11-19T10:02:22Z")

</div>

@jan Okay i set .json file in contentpacks and edit nginx.conf on 1st server but i haven’t metrics in search. ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/9/9ec7889e035948d16d8cb72e3d102a6a39759f84.png)

---

<div class="post-metadata">

**Author:** ![Uporaba](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/uporaba/32/11232_2.png) [@Uporaba](https://community.graylog.org/u/Uporaba)\
**Post date:** [November 19, 2018, 10:02am UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655/4 "2018-11-19T10:02:41Z")

</div>

But data are send on 2nd server ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/a/abfa2f2fd84709ce7bbb925158a6e530efd7c616.png)

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [November 19, 2018, 3:57pm UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655/5 "2018-11-19T15:57:05Z")

</div>

you need to check if your nginx is sending the data proper, if that comes in at graylog and if that is processed by graylog.

---

<div class="post-metadata">

**Author:** ![Uporaba](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/uporaba/32/11232_2.png) [@Uporaba](https://community.graylog.org/u/Uporaba)\
**Post date:** [November 20, 2018, 9:30am UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655/6 "2018-11-20T09:30:04Z")

</div>

Okay i solved this problem, now i don’t understand how i can change log format who output in graylog i changed nginx.conf and changes don’t save.

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [November 20, 2018, 12:33pm UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655/7 "2018-11-20T12:33:16Z")

</div>

would you please rephrase your question - I do not understand what your issue is.

---

<div class="post-metadata">

**Author:** ![Uporaba](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/uporaba/32/11232_2.png) [@Uporaba](https://community.graylog.org/u/Uporaba)\
**Post date:** [November 21, 2018, 9:05am UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655/8 "2018-11-21T09:05:11Z")

</div>

Nothing. I solved all problems,thanks.

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [November 21, 2018, 10:45am UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655/9 "2018-11-21T10:45:14Z")

</div>

Sharing your solution might help others (or yourself) in the future.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [December 5, 2018, 10:45am UTC](https://community.graylog.org/t/sending-nginx-log-to-graylog/7655/10 "2018-12-05T10:45:16Z")

</div>

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