What happens to field2 when an event contains only field1 with alias overwrite selected?
A field alias is created where field1 = field2 and the Overwrite Field Values checkbox is selected. What happens if an event only contains values for field1?
Community Votes
75% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The question tests whether you understand that Overwrite Field Values forces the alias destination field to adopt the source field's value even when the destination is absent or empty.
Learn what Splunk's 'Overwrite Field Values' checkbox does for field aliases when only one field has a value. The community confirms that field2 is replaced by field1's value, with 75% of voters selecting option D.
Option C is the common mistake: test takers assume that if field2 has no value in the event, it stays unchanged; in reality, the overwrite option actively replaces it with field1's value.
Community Discussion (3 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option D is correct because when you create a field alias with "Overwrite Field Values" checked, Splunk will force the alias destination field to use the source field's value whenever it exists. If the event only contains a value for field1, field2 is created or replaced with field1's value. This is explicitly described in Splunk's documentation and supported by the majority of test takers (75% voted D).
Why the Other Options Are Wrong
Option A "field1 and field2 values are merged" is incorrect because an alias does not merge values; it points one field to another. Option B "field2 values are removed" is wrong because the value is copied, not deleted. Option C "field2 values are unchanged" is the most common distracter; it would be true only if Overwrite Field Values were unchecked, but with the checkbox selected, Splunk replaces field2 with field1's value, even if field2 was originally empty.
Community Comment Notes
User comment [1] explains the exact behavior: "Select Overwrite field values if you want your field alias to remove the field alias name when the original field does not exist or has no value, or replace the field alias name with the original field name when the field alias name already exists." This aligns with answer D. Comment [2] incorrectly argues for C, but comment [3] counters: "I tested, D correct ans," which matches practical verification. Trust the tested behavior over theoretical reasoning.
Official Reference
Exam Strategy
Remember the Overwrite Field Values option is a checkbox that changes the behavior of aliases. When it's unchecked, field2 keeps its own value if it exists; when checked, field1's value always takes precedence. On exam day, watch for whether the question mentions this checkbox, and don't assume that missing fields remain untouched.
Related Analysis
Practice All SPLK-1002 Questions
Access 100 questions with complete answers and detailed explanations.
View Full SPLK-1002 Practice Test →