2023-06-22 02:39:22 +00:00
|
|
|
package insertutils
|
|
|
|
|
|
|
|
import (
|
2023-09-15 13:18:38 +00:00
|
|
|
"flag"
|
|
|
|
|
2023-06-22 02:39:22 +00: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 13:18:38 +00:00
|
|
|
|
|
|
|
// MaxFieldsPerLine is the maximum number of fields per line for /insert/* handlers
|
2023-09-18 09:59:46 +00: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 02:39:22 +00:00
|
|
|
)
|