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 should be added to a search to get the total count of all unique domains visited during the search time frame?

  1. | stats count(domain)

  2. | stats dc(domain)

  3. | top domain

  4. | unique domain count

The correct answer is: | stats dc(domain)

To obtain the total count of all unique domains visited during the specified search time frame, using the command to calculate distinct counts is essential. The command "stats dc(domain)" specifically counts the unique occurrences of the field "domain." The "dc" function stands for "distinct count," which directly addresses the requirement of the question—calculating how many unique domains were visited. This command succinctly provides the result without needing further processing or additional commands. In contrast, the other options serve different purposes. The command "stats count(domain)" would give the total number of times domains appear, not distinguishing between unique and repeated domains. The "top domain" command identifies the most frequently visited domains but does not give the total count of unique domains. Finally, "unique domain count" is not a recognized command in Splunk and would not yield meaningful results. Thus, using "stats dc(domain)" directly fulfills the criteria for counting unique domains effectively.