| 1 |
syntax = "proto3"; |
| 2 |
|
| 3 |
package types.v1; |
| 4 |
|
| 5 |
import "google/protobuf/duration.proto"; |
| 6 |
import "google/protobuf/timestamp.proto"; |
| 7 |
import "types/v1/types.proto"; |
| 8 |
|
| 9 |
option go_package = "types/v1;typesv1"; |
| 10 |
|
| 11 |
message LogEventGroup { |
| 12 |
int64 machine_id = 1; |
| 13 |
int64 session_id = 2; |
| 14 |
repeated types.v1.LogEvent logs = 3; |
| 15 |
} |
| 16 |
|
| 17 |
message IngestedLogEvent { |
| 18 |
int64 machine_id = 1; |
| 19 |
int64 session_id = 2; |
| 20 |
int64 event_id = 3; |
| 21 |
google.protobuf.Timestamp parsed_at = 4; |
| 22 |
bytes raw = 5; |
| 23 |
StructuredLogEvent structured = 6; |
| 24 |
} |
| 25 |
|
| 26 |
message LogEvent { |
| 27 |
google.protobuf.Timestamp parsed_at = 1; |
| 28 |
bytes raw = 2; |
| 29 |
StructuredLogEvent structured = 3; |
| 30 |
} |
| 31 |
|
| 32 |
message StructuredLogEvent { |
| 33 |
google.protobuf.Timestamp timestamp = 1; |
| 34 |
string lvl = 2; |
| 35 |
string msg = 3; |
| 36 |
repeated KV kvs = 4; |
| 37 |
} |