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
C#
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


Mohammad JouhariRank #7,688 · 236 reputationPosted Feb 8, 2023, 2:12 PM EST
They do not have a rest API , so thet you can httpclient to send data to it ?