A best practice when writing a search string is to include the search terms at the beginning of the search string. This helps Splunk narrow down the events that match your search criteria and improve the search performance. Formatting commands and functions can be added later in the search pipeline to manipulate and display the results. References:Â Splunk Core User Certification Exam Study Guide, page 13.