Bird
Raised Fist0

Which of the following is the correct Elasticsearch query syntax to retrieve APM transaction documents from the index 'apm-*'?

easy📝 Syntax Q3 of Q15
Elasticsearch - ELK Stack Integration
Which of the following is the correct Elasticsearch query syntax to retrieve APM transaction documents from the index 'apm-*'?
APUT /apm-*/_search {"query": {"match": {"processor.event": "transaction"}}}
BGET /apm-*/_search {"query": {"match": {"processor.event": "transaction"}}}
CGET /apm-*/_delete {"query": {"match": {"processor.event": "transaction"}}}
DPOST /apm-*/_update {"query": {"match": {"processor.event": "transaction"}}}
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct HTTP method for searching

    GET is used to retrieve documents in Elasticsearch queries.
  2. Step 2: Confirm the query structure

    The query matches documents where 'processor.event' equals 'transaction'.
  3. Final Answer:

    GET /apm-*/_search {"query": {"match": {"processor.event": "transaction"}}} -> Option B
  4. Quick Check:

    Search query uses GET with match [OK]
Quick Trick: Use GET for search queries in Elasticsearch [OK]
Common Mistakes:
MISTAKES
  • Using POST or PUT for search queries
  • Using _update or _delete endpoints incorrectly
  • Incorrect JSON query structure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes