SPLK-1002 · Question #158
In the Field Extractor, when would the regular expression method be used?
The correct answer is C. When events contain unstructured data.. The correct answer is C. When events contain unstructured data. The regular expression method works best with unstructured event data, such as log files or text messages, where the fields are not separated by a common delimiter, such as a comma or space. You select a sample event
Question
In the Field Extractor, when would the regular expression method be used?
Options
- AWhen events contain JSON data.
- BWhen events contain comma-separated data.
- CWhen events contain unstructured data.
- DWhen events contain table-based data.
How the community answered
(30 responses)- A3% (1)
- C93% (28)
- D3% (1)
Explanation
The correct answer is C. When events contain unstructured data. The regular expression method works best with unstructured event data, such as log files or text messages, where the fields are not separated by a common delimiter, such as a comma or space. You select a sample event and highlight one or more fields to extract from that event, and the field extractor generates a regular expression that matches similar events in your dataset and extracts the fields from them. The regular expression method provides several tools for testing and refining the accuracy of the regular expression. It also allows you to manually edit the regular expression. The delimiters method is designed for structured event data: data from files with headers, where all of the fields in the events are separated by a common delimiter, such as a comma or space. You select a sample event, identify the delimiter, and then rename the fields that the field extractor finds. This method is simpler and faster than the regular expression method, but it may not work well with complex or irregular data formats.
Topics
Community Discussion
No community discussion yet for this question.