Either receives output from the specified stream or forwards input data to the specified stream. Administrative privileges are required to execute this command.
- Name of the stream. Use comma (
,) as a separator to specify multiple log streams. You can use a wildcard (
*) in the stream name. If you use a wild card, it receives the output from all streams matching a specific string pattern in stream name at once.
- Option to receive output from or forward input to the specified stream specified by
t: Forwards the input to the stream specified by
STREAM, .... Use this option only when you explicitly enable the streaming feature. This option cannot be used when the
windowoption is specified.
f: Receives the input from the stream specified by
- Amount of time to receive data in real time from the time the query is executed. You can specify time in units of
s(second). When the unit is
1yis allowed. For example,
10srefers to "the next 10 seconds" from the time the query was executed. This option cannot be used when
Receive the outputs of
sample2stream queries in real time for 10 seconds
stream window=10s sample1, sample2
Pass 100 records from the
testtable to stream
table limit=100 test | stream forward=t sample1, sample2