I write test data to kibana through Csharp's serilog. Here is my code:
using System;
using Serilog;
using System.Threading;
namespace SerilogTest
{
class Program
{
static void Main(string args)
{
Log.Logger = new LoggerConfiguration().MinimumLevel.Debug().Enrich.WithProperty("PlcSimulator", "Prod").
WriteTo.LiterateConsole().WriteTo.Seq("http://192.168.91.241:5000", compact: true).CreateLogger();
for (int i = 0; i < 10; i++)
{
Random rd = new Random();
int count = rd.Next(50, 100);
Log.ForContext("当前在线数目", count).Information("show network info");
Thread.Sleep(1000);
}
Log.CloseAndFlush();
}
}
}
Now I have encountered a record with errors such as Tags: "Jiu jsonparsefailure message: keep alive" on kibana's discover page when writing data. Please tell me how to solve this problem