跳到主要内容
版本:1.x

Sample

Filter plugin : Sample

Description

Taking Samples from the events.

Options

nametyperequireddefault value
fractionnumberno0.1
limitnumberno-1
fraction [number]

The fraction of sampling. For example, fraction=0.8 represents to extract 80% data from the events.

limit [number]

The number of Rows after sampling, where -1 represents no limit.

Examples

sample {
fraction = 0.8
}

Extract 80% of events.