github.com/alibaba/ilogtail/pkg@v0.0.0-20250526110833-c53b480d046c/protocol/proto/sls_logs.proto (about) 1 syntax = "proto2"; 2 package sls_logs; 3 4 import "github.com/gogo/protobuf/gogoproto/gogo.proto"; 5 6 option go_package = "github.com/alibaba/ilogtail/pkg/protocol"; 7 8 message Log 9 { 10 required uint32 Time = 1;// UNIX Time Format 11 message Content 12 { 13 required string Key = 1; 14 required string Value = 2; 15 } 16 repeated Content Contents = 2; 17 repeated string values = 3; 18 optional fixed32 Time_ns = 4 [(gogoproto.nullable) = true]; 19 } 20 message LogTag 21 { 22 required string Key = 1; 23 required string Value = 2; 24 } 25 message LogGroup 26 { 27 repeated Log Logs = 1; 28 optional string Category = 2; 29 optional string Topic = 3; 30 optional string Source = 4; 31 optional string MachineUUID = 5; 32 repeated LogTag LogTags = 6; 33 } 34 35 message SlsLogPackage 36 { 37 required bytes data = 1; // the serialized data of LogGroup , may be compressed 38 optional int32 uncompress_size = 2; 39 } 40 41 message SlsLogPackageList 42 { 43 repeated SlsLogPackage packages = 1; 44 } 45 46 message LogGroupList 47 { 48 repeated LogGroup logGroupList = 1; 49 } 50