Occasionally, we need to ask data questions that may take some time to answer. In these situations, it is beneficial to have the option of executing said query asynchronously. In this hands-on lab, you will get to execute and manage asynchronous search queries in Elasticsearch.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create the Asynchronous Search
- From the Kibana console, craft an async search query on the
filebeat-7.13.4
dataset to search log messages for any mention of SSH. - The async search should have the
wait_for_completion_timeout
parameter set to0
. - The async search should return a hits array size of
100
.
- From the Kibana console, craft an async search query on the
- Check the Status of the Asynchronous Search
From the Kibana console, use the async search ID to get the status of the request.
Note: If you did not get an async search ID, then make sure you set the
wait_for_completion_timeout
parameter to0
when creating the async search.- Get the Results of the Asynchronous Search
From the Kibana console, use the async search ID to get the results of the request.
Note: If you did not get an async search ID, then make sure you set the
wait_for_completion_timeout
parameter to0
when creating the async search.- Delete the Asynchronous Search
From the Kibana console, use the async search ID to delete the request.
Note: If you did not get an async search ID, then make sure you set the
wait_for_completion_timeout
parameter to0
when creating the async search.