You can use and
and or
in your filter definitions:
filter:
- and:
- query:
query_string:
query: >-
service.name : "my-service" AND transaction.name :
"my-transaction"
- or:
- term:
transaction.result: HTTP 5xx
- range:
http.response.status_code:
gt: 399
Or you can also get rid of the query_string
query and spell it out into individual queries:
filter:
- and:
- term:
service.name: my-service
- term:
transaction.name: my-transaction
- or:
- term:
transaction.result: HTTP 5xx
- range:
http.response.status_code:
gt: 399
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…