Implement filter in status, website and uri in CLI and Frontend
This commit is contained in:
@@ -4,13 +4,27 @@ package logtail;
|
||||
|
||||
option go_package = "git.ipng.ch/ipng/nginx-logtail/proto/logtailpb";
|
||||
|
||||
// StatusOp is the comparison operator applied to http_response in a Filter.
|
||||
// Defaults to EQ (exact match) for backward compatibility.
|
||||
enum StatusOp {
|
||||
EQ = 0; // ==
|
||||
NE = 1; // !=
|
||||
GT = 2; // >
|
||||
GE = 3; // >=
|
||||
LT = 4; // <
|
||||
LE = 5; // <=
|
||||
}
|
||||
|
||||
// Filter restricts results to entries matching all specified fields.
|
||||
// Unset fields match everything.
|
||||
// Unset fields match everything. Exact-match and regex fields are ANDed.
|
||||
message Filter {
|
||||
optional string website = 1;
|
||||
optional string client_prefix = 2;
|
||||
optional string http_request_uri = 3;
|
||||
optional int32 http_response = 4;
|
||||
optional string website = 1;
|
||||
optional string client_prefix = 2;
|
||||
optional string http_request_uri = 3;
|
||||
optional int32 http_response = 4;
|
||||
StatusOp status_op = 5; // operator for http_response; ignored when unset
|
||||
optional string website_regex = 6; // RE2 regex matched against website
|
||||
optional string uri_regex = 7; // RE2 regex matched against http_request_uri
|
||||
}
|
||||
|
||||
enum GroupBy {
|
||||
|
||||
Reference in New Issue
Block a user