This article will introduce the internal data structure and data flow of iLogtail.
This section will introduce some data types related to the plug-in interface. Currently, the data types between iLogtail and the service backend are described by protobuf .
Transfer data fields and labels, simple key/value pairs.
message Content
{
required string Key = 1;
required string Value = 2;
}
message LogTag
{
required string Key = 1;
required string Value = 2;
}
Log is the data type that represents a single log. The Time field is the log time. The Contents field maintains the content of this log and consists of a key/value list.
message Log
{
required uint32 Time = 1;// UNIX Time Format
repeated Content Contents = 2;
}
LogGroup (log group) is a package of multiple logs:
message LogGroup
{
repeated Log Logs = 1;
optional string Category = 2;
optional string Topic = 3;
optional string Source = 4;
optional string MachineUUID = 5;
repeated LogTag LogTags = 6;
}
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )