multisearch command is a generating command that runs multiple streaming searches at the same time. This command requires at least two subsearches and allows only streaming operations in each subsearch. Examples of streaming searches include searches with the following commands:
rex. For more information, see Types of commands in the Search Manual.
| multisearch <subsearch1> <subsearch2> <subsearch3> ...
- Syntax: "["search <logical-expression>"]"
- Description: At least two streaming searches must be specified. See the search command for detailed information about the valid arguments for <logical-expression>.
- To learn more, see About subsearches in the Search Manual.
Generating commands use a leading pipe character and should be the first command in a search.
Subsearch processing and limitations
multisearch command, the events from each subsearch are interleaved. Therefore the
multisearch command is not restricted by the subsearch limitations.
append command, the
multisearch command does not run the subsearch to completion first. The following subsearch example with the
append command is not the same as using the
index=a | eval type = "foo" | append [search index=b | eval mytype = "bar"]
Search for events from both index a and b. Use the
eval command to add different fields to each set of results.
| multisearch [search index=a | eval type = "foo"] [search index=b | eval mytype = "bar"]
This documentation applies to the following versions of Splunk Cloud™: 7.0.13, 7.2.9, 8.0.2007, 8.1.2008, 7.2.10, 8.0.2006, 8.1.2009, 8.1.2011, 8.1.2012 (latest FedRAMP release), 8.1.2101, 8.1.2103, 8.2.2104