I am trying to configure my .NET Core Application with Graylog v2.5. I am using log4net to log messages.
I have used below configuration to setup the environment. I have intentionally raised exception in my WebAPI controller to validate Graylog setup.
<appender name="AsyncGelfUdpAppender" type="Gelf4Net.Appender.AsyncGelfUdpAppender, Gelf4Net">
<!-- Number of log lines to buffer for async send. Defaults to 10-->
<bufferSize value="20" />
<!-- Number of tasks to use for the async appender. 0 or fewer indicates one task per processor-->
<threads value="2" />
<remoteAddress value="127.0.0.1" />
<remotePort value="6789" />
<layout type="Gelf4Net.Layout.GelfLayout, Gelf4Net">
<param name="AdditionalFields" value="app:AsyncUdpAppender,version:1.0,Environment:Dev,Level:%level" />
<param name="Facility" value="RandomPhrases" />
<param name="IncludeLocationInformation" value="true" />
<param name="SendTimeStampAsString" value="true" />
</layout>
I am not getting any error. At the same time, I am not getting any output. Below is the output shown in browser.
Can anyone please suggest me what I am doing wrong? What do I need to do to be able to show log messages in the Graylog interface? Where exactly I can see the log messages? I could not get any help from Google and I am pretty new to Graylog.