Tamil Rk

Tamil Rk

  • 988
  • 451
  • 17.3k

how to send log data to fluent bit

Feb 8 2023 10:03 AM

I need to push c# web api log data to azure adx for that need to follow below concept.

1. Use serilog tcp to send log data in fluent bit

2. Send fluent bit to azure adx.

serilog tcp code 

var configuration = new LoggerConfiguration()
               .MinimumLevel.Debug()
               .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
               .MinimumLevel.Override("Microsoft.AspNetCore", LogEventLevel.Warning);
       
configuration.WriteTo.TCPSink(
               ipAddress: IPAddress.Parse("1.3.3.7"), 
               port:8888,
               textFormatter: new JsonTextFormatter());

I followd the this link but i'm not recived any log data from fluent bit

please help how to send web api log to fluent bit


Answers (1)