nerdexam
Splunk

SPLK-1002 · Question #230

Which of the following statements describe the search string below? | datamodel Application_State All_Application_State search

The correct answer is B. Events will be returned from the data model named Application_State. The datamodel generating command syntax is: '| datamodel <data_model_name> <dataset_name> search'. In this search, 'Application_State' is the name of the data model, and 'All_Application_State' is the name of the dataset (object) within that data model. Therefore, events are…

Data Models

Question

Which of the following statements describe the search string below? | datamodel Application_State All_Application_State search

Options

  • AEvenrches would return a report of sales by state.
  • BEvents will be returned from the data model named Application_State.
  • CEvents will be returned from the data model named All_Application_state.
  • DNo events will be returned because the pipe should occur after the datamodel command

How the community answered

(57 responses)
  • A
    9% (5)
  • B
    86% (49)
  • C
    4% (2)
  • D
    2% (1)

Explanation

The datamodel generating command syntax is: '| datamodel <data_model_name> <dataset_name> search'. In this search, 'Application_State' is the name of the data model, and 'All_Application_State' is the name of the dataset (object) within that data model. Therefore, events are returned from the data model named Application_State (B), not from a model named All_Application_State (C). Option D is incorrect because using a leading pipe (|) with a generating command like 'datamodel' is perfectly valid Splunk syntax - it does not require something before the pipe.

Topics

#Data Models#Datamodel Command#Search Syntax

Community Discussion

No community discussion yet for this question.

Full SPLK-1002 Practice