Exam SPLK-2001 All QuestionsBrowse all questions from this 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

}};

    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
IgnotusOption: A

A is correct

nosavotor

Someone please verify the accuracy of this answer