log with ELK


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

        <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
    <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" />

What's wrong?

(Magnus B├Ąck) #2

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?

(system) #3