nerdexam
SplunkSplunk

SPLK-1002 · Question #286

SPLK-1002 Question #286: Real Exam Question with Answer & Explanation

The correct answer is B: index=X | chart sum(price) by product, region. 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.

Using Transforming Commands for Visualizations

Question

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?

Options

  • Aindex=X sourcetype=Y | chart sum(product) by price AND region
  • Bindex=X | chart sum(price) by product, region
  • Cindex=X | chart total(product) over price by region
  • Dindex=X | chart total(price) by product, region

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.

Topics

#chart command#aggregation#grouping data#SPL syntax

Community Discussion

No community discussion yet for this question.

Full SPLK-1002 PracticeBrowse All SPLK-1002 Questions