# Asp.net log with ELK

**URL:** <https://discuss.elastic.co/t/asp-net-log-with-elk/33986>\
**Category:** Logstash\
**Created:** [November 6, 2015, 11:46am UTC](https://discuss.elastic.co/t/asp-net-log-with-elk/33986 "2015-11-06T11:46:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenzo.gasperotti](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@lorenzo.gasperotti](https://discuss.elastic.co/u/lorenzo.gasperotti)\
**Post date:** [November 6, 2015, 11:46am UTC](https://discuss.elastic.co/t/asp-net-log-with-elk/33986/1 "2015-11-06T11:46:12Z")

</div>

I need to interface an [asp.net](http://asp.net) application (is a web application, write in C#.) to an Elasticsearch/Kibana/Logstash system, for centralize the tracking of the log of the application.

I try to install from nuget the **log4net** and try to configure it to send the log information on my server.  
This is the web.config:

```
<configuration>
    <configSections>
        <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
    </configSections>
    <log4net debug="false">
        <appender name="UdpAppender" type="log4net.Appender.UdpAppender">
            <RemoteAddress value="[serverip]" />
            <RemotePort value="5960" />
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="%date [%thread] %-5level - %property{log4net:HostName} - MyApplication - %message%newline" />
            </layout>
        </appender>
    </log4net>

```

What's wrong?

---

<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:** [November 6, 2015, 11:50am UTC](https://discuss.elastic.co/t/asp-net-log-with-elk/33986/2 "2015-11-06T11:50:18Z")

</div>

What's your Logstash configuration? Is Logstash receiving anything at all? Have you dumped the network traffic to see if there's anything sent over the wire? Have you tried enabling log4net's debug options to see if that reveals anything interesting? Are you even sure that log4net picks up your log messages? What if you replace this appender with a file appender?

---

<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 6, 2017, 5:23am UTC](https://discuss.elastic.co/t/asp-net-log-with-elk/33986/3 "2017-07-06T05:23:38Z")

</div>


