SPLK-2001 Exam QuestionsBrowse all questions from this exam

SPLK-2001 Exam - Question 65


When using the Splunk Web Framework to create a global search, which is the correct post-process syntax for the base search shown below? var searchmain = new SearchManager{{ id: `base-search`, search: `index= internal | head 10 | fields `*`, preview: true, cache: true

}};

Show Answer
Correct Answer: A

The correct syntax for creating a post-process manager in the Splunk Web Framework based on a base search is demonstrated correctly in this option. The 'PostProcessManager' is instantiated with the 'id' set to 'post1', the 'managerid' set to 'base-search', and the 'search' utilizing the correct syntax for a post-process search '| stats count by sourcetype'. This corresponds accurately to the structure required for a global search operation within Splunk's framework.

Discussion

2 comments
Sign in to comment
IgnotusOption: A
Aug 23, 2023

A is correct

nosavotor
Aug 23, 2023

Someone please verify the accuracy of this answer