I need to interface an 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?