QuestionQ27Verified/SPL and Efficient SearchingCopy linkReport a problemAsk AstroTutorSave questionWhich of the following SPL searches will most likely return results the fastest?Asrc_port=2938 AND protocol=tcp | stats count by src_ip | search src_ip=1.2.3.4Bindex=network src_port=2938 protocol=tcp | stats count by src_ip | search src_ip=1.2.3.4Cindex=network sourcetype=netflow src_ip=1.2.3.4 src_port=2938 protocol=tcp | stats countDsrc_ip=1.2.3.4 src_port=2938 protocol=tcp | stats countShow AnswerAnswerExplanationSearches are faster when they restrict data as early and as specifically as possible, particularly by specifying an index and sourcetype, and when filtering occurs before a transforming command such as stats. The most selective search limits events to the network index and netflow sourcetype and applies all event filters before aggregation.Learn moreWrite better searchesSearch using default fieldsShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion