# NLog integration with Beats

**URL:** <https://discuss.elastic.co/t/nlog-integration-with-beats/49982>\
**Category:** Beats\
**Created:** [May 13, 2016, 9:22am UTC](https://discuss.elastic.co/t/nlog-integration-with-beats/49982 "2016-05-13T09:22:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vik/32/2052_2.png) [@Vik](https://discuss.elastic.co/u/Vik)\
**Post date:** [May 13, 2016, 9:22am UTC](https://discuss.elastic.co/t/nlog-integration-with-beats/49982/1 "2016-05-13T09:22:08Z")

</div>

Hi,  
In my current application i am looking to get the application logs which use NLog into elasticsearch using logstash, There seems to have been quite a few changes around lumberjack now been replaced by beats etc. So wondering if anyone knows on how this can be done or has already tried it. I am new to ELK so just wanting some help

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [May 13, 2016, 12:32pm UTC](https://discuss.elastic.co/t/nlog-integration-with-beats/49982/2 "2016-05-13T12:32:11Z")

</div>

It seems in your case you are interested in Filebeat which is a lightweight log file shipper. It can send the log files to Logstash or Elasticsearch. Can you tell us a little bit more about your current setup?

As long as NLog does not write to files, there is no direct integration with Filebeat itself.

---

<div class="post-metadata">

**Author:** ![Vik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vik/32/2052_2.png) [@Vik](https://discuss.elastic.co/u/Vik)\
**Post date:** [May 13, 2016, 1:28pm UTC](https://discuss.elastic.co/t/nlog-integration-with-beats/49982/3 "2016-05-13T13:28:19Z")

</div>

Currently Nlog is set up to write logs to a sql server instance but what i am looking for is those logs directed to logstash into elasticsearch. So i was looking for some mechanism like perhaps UDP/TCP using beat which i can configure Nlog to send the log messages to. I thought about FileBeat but it seemed more relevant if nlog wrote to text files?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 17, 2016, 7:06pm UTC](https://discuss.elastic.co/t/nlog-integration-with-beats/49982/4 "2016-05-17T19:06:24Z")

</div>

Yeah, as the name implies Filebeat reads text files. Logstash can receive messages via UDP or TCP but I'm not aware of any Beat-based program that does that.

I recommend writing logs to disk since it creates a natural buffering mechanism. If you want to send over the network directly from your application there are so many more things that can go wrong, and when things go wrong you don't want to lose your 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:** [July 5, 2017, 9:51pm UTC](https://discuss.elastic.co/t/nlog-integration-with-beats/49982/5 "2017-07-05T21:51:50Z")

</div>


