2023-06-22 04:39:22 +02:00
|
|
|
package insertutils
|
|
|
|
|
|
|
|
import (
|
2023-09-15 15:18:38 +02:00
|
|
|
"flag"
|
|
|
|
|
2023-06-22 04:39:22 +02:00
|
|
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/flagutil"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// MaxLineSizeBytes is the maximum length of a single line for /insert/* handlers
|
|
|
|
MaxLineSizeBytes = flagutil.NewBytes("insert.maxLineSizeBytes", 256*1024, "The maximum size of a single line, which can be read by /insert/* handlers")
|
2023-09-15 15:18:38 +02:00
|
|
|
|
|
|
|
// MaxFieldsPerLine is the maximum number of fields per line for /insert/* handlers
|
2023-09-18 11:59:46 +02:00
|
|
|
MaxFieldsPerLine = flag.Int("insert.maxFieldsPerLine", 1000, "The maximum number of log fields per line, which can be read by /insert/* handlers")
|
2023-06-22 04:39:22 +02:00
|
|
|
)
|