Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Splunk Exam SPLK-1002 Topic 3 Question 106 Discussion

Actual exam question for Splunk's SPLK-1002 exam
Question #: 106
Topic #: 3
[All SPLK-1002 Questions]

Given the following eval statement:

... | eval field1 = if(isnotnull(field1),field1,0), field2 = if(isnull(field2), "NO-VALUE", field2)

Which of the following is the equivalent using fillnull?

Show Suggested Answer Hide Answer
Suggested Answer: D

The fillnull command can be used to replace null values in specific fields. The correct equivalent expression for the given eval statement would involve using fillnull twice, once for field1 to replace null values with 0, and once for field2 to replace null values with 'NO-VALUE'.


Splunk Docs - fillnull command

Contribute your Thoughts:

Jettie
4 days ago
I think the answer is B, there is no equivalent expression using fillnull.
upvoted 0 times
...
Nobuko
11 days ago
I'm not sure, but I think the answer might be D.
upvoted 0 times
...
Irma
18 days ago
Haha, I guess the exam writer is trying to trip us up with these tricky eval statements. But option A seems legit to me.
upvoted 0 times
...
Vilma
22 days ago
I disagree, I believe the answer is C.
upvoted 0 times
...
Eugene
23 days ago
I think the answer is A.
upvoted 0 times
...
Ernest
30 days ago
I think option D is the way to go. Separate fillnull commands for each field seems cleaner and more explicit.
upvoted 0 times
Karrie
9 days ago
I think option D is the best choice as well. It makes the logic more explicit.
upvoted 0 times
...
Marya
14 days ago
I agree, using separate fillnull commands for each field does seem cleaner.
upvoted 0 times
...
...
Kimi
1 months ago
Option A looks like the correct equivalent to me. It fills null values with the specified values for the respective fields.
upvoted 0 times
Lashonda
3 days ago
User3: Yes, option A looks like the best match for the given eval statement.
upvoted 0 times
...
Romana
6 days ago
User2: I agree, option A seems to be the most appropriate choice.
upvoted 0 times
...
Mirta
16 days ago
User1: I think option A is the correct equivalent. It fills null values with the specified values for the respective fields.
upvoted 0 times
...
...

Save Cancel