# send data to elasticsearch
output.elasticsearch:
hosts: ["http://172.17.91.21:9200"]
index: "logs-%{[beat.version]}-%{+yyyy.MM.dd}"
indices:
- index: "ftjf-test-jar_logs-${ES_DATE}-info"
#when.equals:
#fields.type: "jar"
when.contains:
message: "INFO"
Whether an index can use two or more when conditions at the same time, how to write the statement?