10/204 questions · Unlock full access
Q1

A financial services company is analyzing VPN logs to track user session durations. The logs contain a `user_id`, `event_type` (with values 'login' and 'logout'), and `timestamp`. The analyst needs to calculate the duration of each session. The following two searches are proposed. Which statement accurately compares them? **Search A:** `index=vpn sourcetype=vpn_logs | transaction user_id startswith="event_type=login" endswith="event_type=logout" | table user_id, duration` **Search B:** `index=vpn sourcetype=vpn_logs | stats first(_time) as start_time, last(_time) as end_time by user_id | eval duration = end_time - start_time | table user_id, duration`

Q2

A Power User is creating a macro named `get_error_details(1)` that accepts a single argument, `error_code`. The user wants to ensure that if the macro is called without an argument, it defaults to searching for `error_code=5*` and also validates that any provided argument is a number. Which macro definition correctly implements this?

Q3Multiple answers

An analyst is tasked with normalizing firewall data from three different vendors (Palo Alto, Cisco, Check Point) to the Splunk Common Information Model (CIM). The data has been ingested, but searches against the `Network_Traffic` data model are not returning events from the Cisco source type. Which of the following are necessary troubleshooting steps to ensure the Cisco data is CIM compliant? (Select THREE)

Q4

A Power User has created a data model for web access logs that is now being used in several critical dashboards. Users report that dashboards powered by this data model are loading very slowly. Which action would provide the most significant performance improvement for these dashboards?

Q5

True or False: A calculated field's `eval` expression is processed at index time, making it more performant for searches than using the `eval` command directly in the search string.

Q6

A Power User is analyzing web server logs and needs to display the top 5 product categories by sales count, but also wants to include a column showing the percentage of total sales for each category. Which search query accomplishes this?

Q7

A security analyst needs to create a workflow action that, when triggered from an event containing a suspicious IP address (field `suspicious_ip`), opens a new browser tab to an external threat intelligence service. The URL should be `https://threat.local/lookup?ip=VALUE`. Which workflow action configuration is correct?

Q8

A developer is working with JSON logs that contain a nested object for user details. An example event is: `{"event_id": 123, "user": {"id": "user_a", "region": "us-east-1"}, "status": "success"}`. The goal is to extract the `id` and `region` as top-level fields named `user_id` and `user_region`. How can this be accomplished efficiently for all future searches on this sourcetype?

Q9

A Power User is creating a report that shows the daily count of different HTTP status codes. However, on days where a specific status code (e.g., 404) did not occur, it is missing from the `timechart` output. What command should be used to ensure all status codes appear in the legend and have a value of 0 for days they did not occur?

Q10

A team frequently runs a search to find successful logins followed by a failed action from the same user within 5 minutes. To simplify this, an event type named `login_then_fail` is created. Which statement accurately describes the primary benefit of using this event type?