Which of the following are types of event handlers? (Select all that apply.)
A. Search
B. Set token
C. Form input
D. Visualization
Explanation: The types of event handlers are set token and form input. Set token event handlers let you set or unset tokens based on user interactions, such as clicking on a chart or selecting a value from a dropdown. Form input event handlers let you create interactive forms that use tokens to pass values between inputs and searches. The other options are not event handlers, but rather components of a dashboard.
Suppose the following query in a Simple XML dashboard returns a table including
hyperlinks:
A. <option name “link.openSearch.viewTarget">$row.link$</option>
B.
C.
D.
Explanation: It uses the $row.field|n$ syntax to reference the value of the link field in each row of the table. This syntax is used to create dynamic links in Simple XML dashboards. The other options are incorrect because they either use invalid syntax or do not reference the link field correctly. You can find more information about dynamic drill-downs and link syntax in the Splunk Developer Guide.
In a DELETE request, what would omitting the value of _key from the REST endpoint do?
A. Clean the KV store, deleting all content.
B. Produce the syntax error “Key value missing”.
C. Cause all records in a collection to be deleted.
D. Mean that the _key value must be passed as an argument.
Explanation: The correct answer is C, because omitting the value of _key from the REST
endpoint would cause all records in a collection to be deleted. The _key is a unique
identifier for each record in a KV Store collection. The REST endpoint for deleting a record
from a collection is /storage/collections/data/
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
}};
A. var mypostproc1 = new PostProcessManager {{ id: “post1”,
managerid: “base-search”,
search: “| stats count by sourcetype”
}};
B. var mypostproc1 = new PostProcessManager{{ id: “post1”,
managerid: “base”,
search: “| stats count by sourcetype”
}};
C. var mypostproc1 = new PostProcess{{ id: “post1”,
managerid: “base-search”,
search: “| search stats count by sourcetype”
}};
D. You cannot create global searches in the Splunk Web Framework.
Explanation: The correct answer is A, because the correct post-process syntax for the base search shown below is var mypostproc1 = new PostProcessManager {{ id: “post1”, managerid: “base-search”, search: “| stats count by sourcetype” }}. The PostProcessManager is a JavaScript object that creates a post-process search that runs on the results of a base search. The PostProcessManager requires three parameters: id, managerid, and search. The id is a unique identifier for the post-process search. The managerid is the id of the base search that the post-process search depends on. The search is the post-process search string that runs on the base search results. The other options are incorrect because they either use the wrong managerid, the wrong object name, or the wrong search string.
How can hiding or showing a panel by clicking on a chart or a table on the same form be performed?
A. By using vent drilldown.
B. By using workflow action.
C. By using contextual drilldown.
D. By using visualization drilldown.
Explanation: By using visualization drilldown, you can hide or show a panel by clicking on a chart or a table on the same form. Visualization drilldown lets you define a drilldown action that affects a different panel on the same dashboard. You can use the set or unset tokens to control the visibility of the target panel.
Page 1 out of 14 Pages |