ExamGecko
Question list
Search
Search

Question 219 - SPLK-1002 discussion

Report
Export

A user runs the following search:

index---X sourcetype=Y I chart count (domain) as count, sum (price) as sum by product, action usenull=f useother---f

Which of the following table headers match the order this command creates?

A.
The chart command does not allow for multiple statistical functions.
Answers
A.
The chart command does not allow for multiple statistical functions.
B.
Product, sum: addtocart, sum: remove, sum: purchase, count: addtocart, count: remove, count: purchase
Answers
B.
Product, sum: addtocart, sum: remove, sum: purchase, count: addtocart, count: remove, count: purchase
C.
Product, count: addtocart, count: remove, count: purchase, sum: addtocart, sum: remove, sum: purchase
Answers
C.
Product, count: addtocart, count: remove, count: purchase, sum: addtocart, sum: remove, sum: purchase
D.
Count: product, sum: product, count: action, sum: action
Answers
D.
Count: product, sum: product, count: action, sum: action
Suggested answer: C

Explanation:

The correct answer is C. Product, count: addtocart, count: remove, count: purchase, sum: addtocart, sum: remove, sum: purchase1.

In Splunk, the chart command is used to create a table or a chart visualization from your data2. The chart command takes at least one function and one field, and optionally another field to group by2.

In the given search, the chart command is used with two functions (count and sum), two fields (domain and price), and two fields to group by (product and action). The usenull=f and useother=f options are used to exclude null values and other values from the chart2.

The chart command creates a table with headers that match the order of the fields and functions in the command1. The headers for the count function are prefixed with count:, and the headers for the sum function are prefixed with sum:1. The values of the product and action fields are used as the suffixes for the headers1.

Therefore, the table headers created by this command are Product, count: addtocart, count: remove, count: purchase, sum: addtocart, sum: remove, and sum: purchase1.

asked 23/09/2024
Siddig Ahmed
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first