Bird
Raised Fist0

Given this ingest pipeline snippet, what will be the value of the field 'log_level' after processing?

medium📝 Predict Output Q4 of Q15
Elasticsearch - ELK Stack Integration
Given this ingest pipeline snippet, what will be the value of the field 'log_level' after processing?
{"processors": [{"set": {"field": "log_level", "value": "INFO"}}, {"set": {"field": "log_level", "value": "ERROR"}}]}
AINFO, ERROR
BINFO
Cnull
DERROR
Step-by-Step Solution
Solution:
  1. Step 1: Analyze processor order

    The first processor sets 'log_level' to 'INFO', then the second overwrites it to 'ERROR'.
  2. Step 2: Understand field overwrite behavior

    Each processor runs sequentially; later 'set' overwrites previous values.
  3. Final Answer:

    ERROR -> Option D
  4. Quick Check:

    Last processor value wins = ERROR [OK]
Quick Trick: Later processors overwrite earlier field values [OK]
Common Mistakes:
MISTAKES
  • Assuming values concatenate
  • Thinking first value persists
  • Ignoring processor order

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes