QuestionQ156Verified/Search Language FundamentalsCopy linkReport a problemAsk AstroTutorSave questionThe better way to write a search query for an index is:Aindex=a index=bB(index=a OR index=b)Cindex=(a & b)Dindex = a, bShow AnswerAnswerExplanationIn Splunk searches, adjacent terms imply AND, whereas OR returns events matching either specified index. Grouping the alternatives as (index=a OR index=b) therefore searches both indexes correctly.Learn moresearch command: Examplessearch command referenceShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion