Macros, Field Extraction, and Field Aliases
摘要
This chapter discusses field extraction, macros, and field aliases in Splunk and explores SPL by using various queries. Field extraction in Splunk is a process that extracts fields from raw data. Splunk can extract data fields during indexing and searching. Macros in Splunk are a reusable block (content that can be saved for future use) in which you can dynamically set the same logic for different parts or values in the dataset. Macros are useful when you want to frequently run the search command because they save you from rewriting the whole command. Field aliases in Splunk provide fields with alternate names. Field aliases correlate with various events that have similar field values.