ExamGecko
Question list
Search
Search

Question 279 - SPLK-1002 discussion

Report
Export

A user wants a table that will show the total revenue made for each product in each sales region. Which would be the correct SPL query to use?

A.

index=X sourcetype=Y | chart sum(product) by price AND region

Answers
A.

index=X sourcetype=Y | chart sum(product) by price AND region

B.

index=X | chart sum(price) by product, region

Answers
B.

index=X | chart sum(price) by product, region

C.

index=X | chart total(product) over price by region

Answers
C.

index=X | chart total(product) over price by region

D.

index=X | chart total(price) by product, region

Answers
D.

index=X | chart total(price) by product, region

Suggested answer: B

Explanation:

The chart command with sum(price) by product, region will return a table where the total revenue (price) is aggregated (sum) for each product and sales region. This is the correct way to aggregate data in Splunk.

Splunk Docs - chart command

asked 18/10/2024
Johan Benavides
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first