ExamGecko
Question list
Search
Search

Question 264 - SPLK-1002 discussion

Report
Export

Which of these stats commands will show the total bytes for each unique combination of page and server?

A.
index=web | stats sum (bytes) BY page BY server
Answers
A.
index=web | stats sum (bytes) BY page BY server
B.
index=web | stats sum (bytes) BY page server
Answers
B.
index=web | stats sum (bytes) BY page server
C.
index=web | stats sum(bytes) BY page AND server
Answers
C.
index=web | stats sum(bytes) BY page AND server
D.
index=web | stats sum(bytes) BY values (page) values (server)
Answers
D.
index=web | stats sum(bytes) BY values (page) values (server)
Suggested answer: B

Explanation:

The correct command to show the total bytes for each unique combination of page and server isindex=web | stats sum (bytes) BY page server. In Splunk, thestatscommand is used to calculate aggregate statistics over the dataset, such as count, sum, avg, etc. When using theBYclause, it groups the results by the specified fields. The correct syntax does not include commas or the word 'AND' between the field names. Instead, it simply lists the field names separated by spaces within theBYclause.

Reference: The usage of thestatscommand with theBYclause is confirmed by examples in the Splunk Community, where it's explained thatstatswith aby foo barwill output one row for every unique combination of thebyfields1.

asked 23/09/2024
Braden Houser
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first