Bird
Raised Fist0

Identify the error in this pipeline configuration snippet:

medium📝 Debug Q6 of Q15
Elasticsearch - ELK Stack Integration
Identify the error in this pipeline configuration snippet:
{"processors": [{"set": {"field": "host", "value": "server1"}}, {"rename": {"field": "host", "target": "hostname"}}]}
AThe 'rename' processor uses incorrect key 'target'
BThe 'set' processor is missing a required parameter
CThe pipeline is missing a 'description' field
DThe 'rename' processor should be 'move'
Step-by-Step Solution
Solution:
  1. Step 1: Check 'rename' processor keys

    The correct key for the new field is 'target_field', but the snippet uses 'target', which is incorrect.
  2. Step 2: Verify other options

    The 'set' processor has all required parameters, 'description' is optional, and 'rename' is a valid processor.
  3. Final Answer:

    The 'rename' processor uses incorrect key 'target' -> Option A
  4. Quick Check:

    Rename processor keys must be exact [OK]
Quick Trick: Use exact keys for processors like 'field' and 'target_field' [OK]
Common Mistakes:
MISTAKES
  • Using wrong keys in processors
  • Assuming optional fields are required
  • Confusing processor names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes