SPLK-1001 Exam QuestionsBrowse all questions from this exam

SPLK-1001 Exam - Question 38


How do you add or remove fields from search results?

Show Answer
Correct Answer: C

To add or remove fields from search results in Splunk, you use the 'fields' command. To add, you specify the fields you want to include, and to remove, you use a minus sign before the field names you want to exclude. Therefore, the correct usage is 'fields fieldname+' to add and 'fields fieldname-' to remove fields from the search results.

Discussion

17 comments
Sign in to comment
sathyaDevaOption: C
Jan 18, 2022

C.Use fields +to add and fields -to remove.

warlitosOption: C
Feb 9, 2023

Correct answer C. The command is "fields" and not "field"

jake7Option: C
Oct 23, 2021

Technically none of them are correct. The answer is fields + to add and fields - to remove. I keep seeing C as the answer but at least the way the answer is displayed to me it shows fields "' as to remove and that is not correct

millyb_higOption: C
Apr 9, 2022

I completely agree with jake7, fields - is to remove

igweifeanyiOption: A
Jul 4, 2022

the correct answer is A for sure bcos you use + to add and - to remove. You dont type "plus" or "minus" cos splunk wont recognize it.

Solemn_TornadoOption: A
Jul 8, 2022

Not sure what ''' is supposed to be but C is not correct. A is. ref - https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/SearchReference/Fields#Syntax

Solemn_Tornado
Jul 8, 2022

Also as jake7 pointed out, none are technically correct. A is closest, add s to make fields and the answer is there.

aguilardOption: A
Oct 25, 2022

A is correct

SunsilOption: A
Dec 19, 2022

A is the correct answer

Amish0123Option: A
Jan 16, 2023

A is correct

Alexi2415Option: C
Mar 16, 2023

use fields + to add add fields - to minus ..tested

Alexi2415
Mar 16, 2023

fields - to remove**

TheRealSplunkieOption: C
Jul 19, 2023

I have to go with C. "fields" is plural in the Splunk documentation not singular. In answer C, there is no minus sign to remove, but 2 symbols and a quotation mark in the answer. My assumption is that is a misprint. https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/SearchReference/Fields#Syntax

KEGOOOption: C
Oct 20, 2021

C is the correct

jb844Option: C
Oct 19, 2023

typo "fields-"

dickchappyOption: C
Dec 6, 2023

"field" is not a valid Splunk command, it's "fields"

ANki_24Option: C
Dec 19, 2023

C is correct

ANki_24Option: C
Dec 19, 2023

fields + and fields - are used

CydeOption: C
Jun 26, 2024

C - Use fields + to add and fields - to remove (is the correct answer) "field is not a Splunk command, it is fields"