@@ -46,7 +46,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
4646 expect ( value ) . to . deep . equal ( { "bool" : { "must" : [
4747 { "match" : { "http.uri" : { "query" : "/v2/pet/findByStatus" , "operator" : "and" } } } ,
4848 { "exists" : { "field" : "http" } } ,
49- { "term" : { "processInfo.serviceId.keyword " : "instance-1" } }
49+ { "term" : { "processInfo.serviceId" : "instance-1" } }
5050 ] } } ) ;
5151 } ) ;
5252
@@ -59,7 +59,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
5959 expect ( value ) . to . deep . equal ( { "bool" : { "must" : [
6060 { "match" : { "http.sslSubject" : { "query" : "/CN=*.ngrok.io" } } } ,
6161 { "exists" : { "field" : "http" } } ,
62- { "term" : { "processInfo.serviceId.keyword " : "instance-1" } }
62+ { "term" : { "processInfo.serviceId" : "instance-1" } }
6363 ] } } ) ;
6464 } ) ;
6565
@@ -73,7 +73,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
7373 { "match" : { "http.uri" : { "query" : "/v2/pet/findByStatus" , "operator" : "and" } } } ,
7474 { "match" : { "http.method" : { "query" : "GET" } } } ,
7575 { "exists" : { "field" : "http" } } ,
76- { "term" : { "processInfo.serviceId.keyword " : "instance-1" } }
76+ { "term" : { "processInfo.serviceId" : "instance-1" } }
7777 ] } } ) ;
7878 } ) ;
7979
@@ -85,7 +85,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
8585 expect ( value ) . to . be . a ( 'object' ) ;
8686 expect ( value ) . to . deep . equal ( { "bool" : { "must" : [
8787 { exists : { "field" : "http" } } ,
88- { term : { "processInfo.serviceId.keyword " : "instance-1" } } ,
88+ { term : { "processInfo.serviceId" : "instance-1" } } ,
8989 { range : { "duration" : { "gte" : "100" } } }
9090 ] } } ) ;
9191 } ) ;
@@ -109,7 +109,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
109109
110110 expect ( value ) . to . deep . equal ( { "bool" : { "must" : [
111111 { exists : { "field" : "http" } } ,
112- { term : { "processInfo.serviceId.keyword " : "instance-1" } } ,
112+ { term : { "processInfo.serviceId" : "instance-1" } } ,
113113 { range : { "@timestamp" : { "gte" : "1607010000000" , "lte" : "16070900000000" } } }
114114 ] } } ) ;
115115 } ) ;
@@ -125,7 +125,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
125125 expect ( value ) . to . deep . equal ( { "bool" : { "must" : [
126126 { "match" : { "fileTransfer.serviceType" : { "query" : "ftps" } } } ,
127127 { "exists" : { "field" : "fileTransfer" } } ,
128- { "term" : { "processInfo.serviceId.keyword " : "instance-1" } }
128+ { "term" : { "processInfo.serviceId" : "instance-1" } }
129129 ] } } ) ;
130130 } ) ;
131131
@@ -138,7 +138,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
138138 expect ( value ) . to . deep . equal ( { "bool" : { "must" : [
139139 { range : { "http.status" : { "gte" : 200 , "lte" : 200 } } } ,
140140 { exists : { "field" : "http" } } ,
141- { term : { "processInfo.serviceId.keyword " : "instance-1" } }
141+ { term : { "processInfo.serviceId" : "instance-1" } }
142142 ] } } ) ;
143143 } ) ;
144144
@@ -151,7 +151,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
151151 expect ( value ) . to . deep . equal ( { "bool" : { "must" : [
152152 { range : { "http.status" : { "gte" : 200 , "lte" : 299 } } } ,
153153 { exists : { "field" : "http" } } ,
154- { term : { "processInfo.serviceId.keyword " : "instance-1" } }
154+ { term : { "processInfo.serviceId" : "instance-1" } }
155155 ] } } ) ;
156156 } ) ;
157157
@@ -164,7 +164,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
164164 expect ( value ) . to . deep . equal ( { "bool" :
165165 { "must" : [
166166 { exists : { "field" : "http" } } ,
167- { term : { "processInfo.serviceId.keyword " : "instance-1" } }
167+ { term : { "processInfo.serviceId" : "instance-1" } }
168168 ] ,
169169 "must_not" : [
170170 { range : { "http.status" : { "gte" : 200 , "lte" : 200 } } } ,
@@ -181,7 +181,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
181181 expect ( value ) . to . deep . equal ( { "bool" :
182182 { "must" : [
183183 { exists : { "field" : "http" } } ,
184- { term : { "processInfo.serviceId.keyword " : "instance-1" } }
184+ { term : { "processInfo.serviceId" : "instance-1" } }
185185 ] ,
186186 "must_not" : [
187187 { range : { "http.status" : { "gte" : 200 , "lte" : 299 } } }
@@ -218,20 +218,20 @@ describe('flow-node traffic-monitor-api-utils', () => {
218218 { "bool" : {
219219 "should" : [
220220 {
221- "term" : { "processInfo.serviceId.keyword " : "traffic-7cb4f6989f-first" }
221+ "term" : { "processInfo.serviceId" : "traffic-7cb4f6989f-first" }
222222 } ,
223223 {
224- "match" : { "processInfo.serviceId" : "traffic-" }
224+ "match" : { "processInfo.serviceId.text " : "traffic-" }
225225 }
226226 ] }
227227 }
228228 ] ,
229229 "must_not" : [
230230 {
231- "term" : { "processInfo.serviceId.keyword " : "traffic-7cb4f6989f-second" }
231+ "term" : { "processInfo.serviceId" : "traffic-7cb4f6989f-second" }
232232 } ,
233233 {
234- "term" : { "processInfo.serviceId.keyword " : "traffic-7cb4f6989f-third" }
234+ "term" : { "processInfo.serviceId" : "traffic-7cb4f6989f-third" }
235235 }
236236 ]
237237 } } ) ;
@@ -247,7 +247,7 @@ describe('flow-node traffic-monitor-api-utils', () => {
247247 expect ( value ) . to . deep . equal ( { "bool" : {
248248 "must" : [
249249 { "exists" : { "field" : "http" } } ,
250- { term : { "processInfo.serviceId.keyword " : "traffic-7cb4f6989f-second" } }
250+ { term : { "processInfo.serviceId" : "traffic-7cb4f6989f-second" } }
251251 ]
252252 } } ) ;
253253 } ) ;
0 commit comments