Let us put the response time we are logging through
nginx to a good use. Since data is stored in ElasticSearch, we might do a few quick examples of using its API. We can, for instance, retrieve all entries stored inside the
curl 'http://logging:9200/logstash-*/_search' \ | jq '.'
Elastic search returned the first ten entries (default page size), together with some additional information, like the total number of records. There's not much use in retrieving all the entries, so let us try to narrow it down. We can, for example, request all records that have
curl 'http://logging:9200/logstash-*/_search?q=container_id:nginx' \ | jq '.'
The results are the same three ...