Prepare for the Splunk Fundamentals 1 Exam. Utilize flashcards and multiple-choice questions, each crafted with hints and explanations. Get exam-ready now!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What does the command: index=network sourcetype=cisco_wsa_squid | stats sum(sc_bytes) as Bandwidth by s_hostname | sort -Bandwidth do?

  1. Sorts the data by source host.

  2. Pulls values and sorts by total bandwidth for each source host.

  3. Counts the unique source host entries.

  4. Calculates the average bandwidth for each source host.

The correct answer is: Pulls values and sorts by total bandwidth for each source host.

The command effectively pulls values of network traffic related to the Cisco WSA Squid, calculates the total bandwidth consumed by each source host, and then sorts the results in descending order based on that total bandwidth. Starting from the command, the first part, "index=network sourcetype=cisco_wsa_squid," specifies the data source that is being queried, which is the network data specifically coming from Cisco WSA Squid logs. This establishes the context for the data retrieval. The next part, "| stats sum(sc_bytes) as Bandwidth by s_hostname," computes the total of the "sc_bytes" field for each unique source host identified by "s_hostname." This aggregates the total bandwidth usage for each source host, renaming the sum to "Bandwidth" for easier interpretation of the results. Finally, the command "| sort -Bandwidth" sorts the resulting dataset in descending order of the calculated bandwidth. This means that the source hosts that are using the most bandwidth will appear at the top of the sorted list. Therefore, the command accurately reflects the process of pulling values and sorting by total bandwidth for each source host, making option B the correct choice.