The eval command supports a number of functions that you can use in your expressions to perform calculations, conversions, string manipulations and more2. One of the eval command functions is tostring(), which converts a numeric value to a string value2. Therefore, option D is correct, while options A, B and C are incorrect because they are not valid eval command functions.
Question # 5
Selected fields are displayed ______each event in the search results.
Selected fields are fields that you choose to display in your search results by clicking on them in the Fields sidebar or by using the fields command2. Selected fields are displayed below each event in the search results, along with their values2. Therefore, option A is correct, while options B, C and D are incorrect because they are not places where selected fields are displayed.
Question # 6
Which are valid ways to create an event type? (select all that apply)
A.
By using the searchtypes command in the search bar.
B.
By editing the event_type stanza in the props.conf file.
C.
By going to the Settings menu and clicking Event Types > New.
D.
By selecting an event in search results and clicking Event Actions > Build Event Type.
Event types are custom categories of events that are based on search criteria. Event types can be used to label events with meaningful names, such as error, success, login, logout, etc. Event types can also be used to create transactions, alerts, reports, dashboards, etc. Event types can be created in two ways:
By going to the Settings menu and clicking Event Types > New. This will open a form where you can enter the name, description, search string, app context, and tags for the event type.
By selecting an event in search results and clicking Event Actions > Build Event Type. This will open a dialog box where you can enter the name and description for the event type. The search string will be automatically populated based on the selected event.
Event types cannot be created by using the searchtypes command in the search bar, as this command does not exist in Splunk. Event types can also be created by editing the event_type stanza in the transforms.conf file, not the props.conf file.
Question # 7
Given the macro definition below, what should be entered into the Name and Arguments fileds to correctly configured the macro?
A.
The macro name is sessiontracker and the arguments are action, JESSIONID.
B.
The macro name is sessiontracker(2) and the arguments are action, JESSIONID.
C.
The macro name is sessiontracker and the arguments are $action$, $JESSIONID$.
D.
The macro name is sessiontracker(2) and the Arguments are $action$, $JESSIONID$.
[Reference: https://docs.splunk.com/Documentation/Splunk/8.0.3/Knowledge/Definesearchmacros, , The macro definition below shows a macro that tracks user sessions based on two arguments: action and JSESSIONID., sessiontracker(2), The macro definition does the following:, It specifies the name of the macro as sessiontracker. This is the name that will be used to execute the macro in a search string., It specifies the number of arguments for the macro as 2. This indicates that the macro takes two arguments when it is executed., It specifies the code for the macro as index=main sourcetype=access_combined_wcookie action=$action$ JSESSIONID=$JSESSIONID$ | stats count by JSESSIONID. This is the search string that will be run when the macro is executed. The search string can contain any part of a search, such as search terms, commands, arguments, etc. The search string can also include variables for the arguments using dollar signs around them. In this case, action and JSESSIONID are variables for the arguments that will be replaced by their values when the macro is executed., Therefore, to correctly configure the macro, you should enter sessiontracker as the name and action, JSESSIONID as the arguments. Alternatively, you can use sessiontracker(2) as the name and leave the arguments blank., , ]
Question # 8
When creating a Search workflow action, which field is required?
[Reference: https://docs.splunk.com/Documentation/Splunk/8.0.3/Knowledge/Setupasearchworkflowaction, A workflow action is a link that appears when you click an event field value in your search results2. A workflow action can open a web page or run another search based on the field value2. There are two types of workflow actions: GET and POST2. A GET workflow action appends the field value to the end of a URI and opens it in a web browser2. A POST workflow action sends the field value as part of an HTTP request to a web server2. When creating a Search workflow action, which is a type of GET workflow action that runs another search based on the field value, the only required field is the search string2. The search string defines the search that will be run when the workflow action is clicked2. Therefore, option A is correct, while options B, C and D are incorrect because they are not required fields for creating a Search workflow action., ]