# To setup Graylog stream for .Net application

**URL:** <https://community.graylog.org/t/to-setup-graylog-stream-for-net-application/30419>\
**Category:** New to Graylog Community? READ-ME FIRST Guides\
**Tags:** windows\
**Created:** [October 23, 2023, 3:19am UTC](https://community.graylog.org/t/to-setup-graylog-stream-for-net-application/30419 "2023-10-23T03:19:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoKumar](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@RoKumar](https://community.graylog.org/u/RoKumar)\
**Post date:** [October 23, 2023, 3:19am UTC](https://community.graylog.org/t/to-setup-graylog-stream-for-net-application/30419/1 "2023-10-23T03:19:27Z")

</div>

Hello,

I have Graylog on our own server and we are able to send logs for Java application to Graylog sucessfully.  
I wanted to setup Graylog stream for our ‘.Net’ application but could not find any step/document related to it. Shall I use the same setup for ‘.Net’ application what we did for Java application ?

---

<div class="post-metadata">

**Author:** ![drewmiranda-gl](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/drewmiranda-gl/32/13376_2.png) [@drewmiranda-gl](https://community.graylog.org/u/drewmiranda-gl)\
**Post date:** [October 25, 2023, 4:41pm UTC](https://community.graylog.org/t/to-setup-graylog-stream-for-net-application/30419/2 "2023-10-25T16:41:43Z")

</div>

As I understand it you have a couple of options:

- Use a GELF library to send logging directly form your app
  - See [GitHub - mattwcole/gelf-extensions-logging: GELF provider for Microsoft.Extensions.Logging](https://github.com/mattwcole/gelf-extensions-logging)
  - Additionally, it should be trivial to implement a class or method that sends a json payload to an HTTP endpoint (such as GELF HTTP input)

- Log to file and use [Filebeat](https://www.elastic.co/beats/filebeat) or [NXLog](https://nxlog.co/products/nxlog-community-edition) to ship logs to graylog

Hope that helps.
