- harvester_buffer_size: 5368709120
- message_max_bytes: 5368709120
- multiline.max_lines: 5368709120
i configured above configuration in filebet after am getting below issue mp":"2025-11-30T05:04:30.546-0500","log.logger":"input.harvester","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/log.(*Harvester).newLogFileReader","file.name":"log/harvester.go","file.line":655},"message":"newLogFileReader with config.MaxBytes: 10485760","service.name":"filebeat","input_id":"dd0ea89d-927a-46bb-b468-803a1765fc3c","source_file":"/home/npc/logs/kafkaError.log","state_id":"native::21560394-64772","finished":false,"os_id":"21560394-64772","old_source":"/home/npc/logs/kafkaError.log","old_finished":true,"old_os_id":"21560394-64772","harvester_id":"ccfa40b1-56ab-4186-8e13-eea5c46d605d","ecs.version":"1.6.0"}
fatal error: runtime: out of memory
runtime stack:
runtime.throw({0x5602667b2f0a?, 0x203050?})
runtime/panic.go:1023 +0x5e fp=0x7f9104ff8c08 sp=0x7f9104ff8bd8 pc=0x56026220bede
runtime.sysMapOS(0xc002800000, 0x140000000)
runtime/mem_linux.go:167 +0x11b fp=0x7f9104ff8c48 sp=0x7f9104ff8c08 pc=0x5602621e873b
runtime.sysMap(0xc002800000, 0x140000000, 0x56026af11128?)
runtime/mem.go:155 +0x34 fp=0x7f9104ff8c68 sp=0x7f9104ff8c48 pc=0x5602621e8174
runtime.(*mheap).grow(0x56026af00f20, 0xa0000?)
runtime/mheap.go:1534 +0x236 fp=0x7f9104ff8cd8 sp=0x7f9104ff8c68 pc=0x5602621fbad6
runtime.(*mheap).allocSpan(0x56026af00f20, 0xa0000, 0x0, 0x1)
runtime/mheap.go:1246 +0x1b0 fp=0x7f9104ff8d78 sp=0x7f9104ff8cd8 pc=0x5602621fb1b0
runtime.(*mheap).alloc.func1()
runtime/mheap.go:964 +0x5c fp=0x7f9104ff8dc0 sp=0x7f9104ff8d78 pc=0x5602621fac5c
runtime.systemstack(0x800000)
runtime/asm_amd64.s:509 +0x47 fp=0x7f9104ff8dd0 sp=0x7f9104ff8dc0 pc=0x560262247907
goroutine 133 gp=0xc000ece540 m=9 mp=0xc00113a808 [running]:
runtime.systemstack_switch()
runtime/asm_amd64.s:474 +0x8 fp=0xc000087130 sp=0xc000087120 pc=0x5602622478a8
runtime.(*mheap).alloc(0x140000000?, 0xa0000?, 0xcf?)
runtime/mheap.go:958 +0x5b fp=0xc000087178 sp=0xc000087130 pc=0x5602621fabbb
runtime.(*mcache).allocLarge(0x7f9154536108?, 0x140000000, 0x1)
runtime/mcache.go:234 +0x87 fp=0xc0000871c8 sp=0xc000087178 pc=0x5602621e7227
runtime.mallocgc(0x140000000, 0x560267403320, 0x1)
runtime/malloc.go:1165 +0x597 fp=0xc000087250 sp=0xc0000871c8 pc=0x5602621dd117
runtime.makeslice(0x560267f96120?, 0xc001b806f0?, 0x0?)
runtime/slice.go:107 +0x49 fp=0xc000087278 sp=0xc000087250 pc=0x5602622271a9
github.com/elastic/beats/v7/libbeat/reader/readfile.NewLineReader({0x560267f8cb48, 0xc000c7af00}, {{0x7f910c5f8518, 0x56026af57f80}, 0x140000000, 0x1, 0x2800000, 0x0})
github.com/elastic/beats/v7/libbeat/reader/readfile/line.go:79 +0x19b fp=0xc000087348 sp=0xc000087278 pc=0x560264e4215b
github.com/elastic/beats/v7/libbeat/reader/readfile.NewEncodeReader(...)
github.com/elastic/beats/v7/libbeat/reader/readfile/encode.go:54
github.com/elastic/beats/v7/filebeat/input/log.(*Harvester).newLogFileReader(0xc00106f608)
github.com/elastic/beats/v7/filebeat/input/log/harvester.go:676 +0x1e5 fp=0xc000087450 sp=0xc000087348 pc=0x560264e52285
github.com/elastic/beats/v7/filebeat/input/log.(*Harvester).Setup(0xc00106f608)
github.com/elastic/beats/v7/filebeat/input/log/harvester.go:197 +0x85 fp=0xc0000874f0 sp=0xc000087450 pc=0x560264e4f005
github.com/elastic/beats/v7/filebeat/input/log.(*Input).startHarvester(0xc00101cf00, 0xc001b982e0, {{0xc001aad9f8, 0x15}, {0x0, 0x0}, 0x0, {0x560267fe3288, 0xc0012d9ad0}, {0xc0012f4800, ...}, ...}, ...)
github.com/elastic/beats/v7/filebeat/input/log/input.go:756 +0x125 fp=0xc0000875d8 sp=0xc0000874f0 pc=0x560264e57e45
github.com/elastic/beats/v7/filebeat/input/log.(*Input).scan(0xc00101cf00)
github.com/elastic/beats/v7/filebeat/input/log/input.go:563 +0x5b6 fp=0xc000087b50 sp=0xc0000875d8 pc=0x560264e560b6
github.com/elastic/beats/v7/filebeat/input/log.(*Input).Run(0xc00101cf00)
github.com/elastic/beats/v7/filebeat/input/log/input.go:251 +0x12e fp=0xc000087f28 sp=0xc000087b50 pc=0x560264e53c0e
github.com/elastic/beats/v7/filebeat/input.(*Runner).Run(0xc000e25dc0)
github.com/elastic/beats/v7/filebeat/input/input.go:136 +0x28 fp=0xc000087fa0 sp=0xc000087f28 pc=0x560264e1d5c8
github.com/elastic/beats/v7/filebeat/input.(*Runner).Start.func1()
github.com/elastic/beats/v7/filebeat/input/input.go:129 +0x5b fp=0xc000087fe0 sp=0xc000087fa0 pc=0x560264e1d49b
runtime.goexit({})
runtime/asm_amd64.s:1695 +0x1 fp=0xc000087fe8 sp=0xc000087fe0 pc=0x5602622498e1
created by github.com/elastic/beats/v7/filebeat/input.(*Runner).Start in goroutine 1
github.com/elastic/beats/v7/filebeat/input/input.go:122 +0xf5
goroutine 1 gp=0xc0000061c0 m=nil [chan receive]:
runtime.gopark(0x7f910c216688?, 0x18?, 0x8?, 0x61?, 0x18?)
runtime/proc.go:402 +0xce fp=0xc00209eae8 sp=0xc00209eac8 pc=0x56026220faee
runtime.chanrecv(0xc00010f020, 0x0, 0x1)
runtime/chan.go:583 +0x3bf fp=0xc00209eb60 sp=0xc00209eae8 pc=0x5602621d58ff
runtime.chanrecv1(0xc00012f680?, 0xc001b98230?)
runtime/chan.go:442 +0x12 fp=0xc00209eb88 sp=0xc00209eb60 pc=0x5602621d5512
github.com/elastic/beats/v7/filebeat/beater.(*signalWait).Wait(...)
github.com/elastic/beats/v7/filebeat/beater/signalwait.go:44
github.com/elastic/beats/v7/filebeat/beater.(*Filebeat).Run(0xc001186e00, 0xc001005008)
github.com/elastic/beats/v7/filebeat/beater/filebeat.go:447 +0x1b0a fp=0xc00209f4d8 sp=0xc00209eb88 pc=0x560264eeed6a
github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).launch(0xc001005008, {{0x560266770bb2, 0x8}, {0x560266770bb2, 0x8}, {0x0, 0x0}, 0x1, 0x1, {{0x0, ...}, ...}, ...}, ...)
github.com/elastic/beats/v7/libbeat/cmd/instance/beat.go:772 +0x983 fp=0xc00209fac0 sp=0xc00209f4d8 pc=0x560264dee0c3
github.com/elastic/beats/v7/libbeat/cmd/instance.Run.func1(0xc001c3fbf0, 0xc000f30290)
github.com/elastic/beats/v7/libbeat/cmd/instance/beat.go:225 +0x145 fp=0xc00209fbd0 sp=0xc00209fac0 pc=0x560264debfe5
github.com/elastic/beats/v7/libbeat/cmd/instance.Run({{0x560266770bb2, 0x8}, {0x560266770bb2, 0x8}, {0x0, 0x0}, 0x1, 0x1, {{0x0, 0x0}, ...}, ...}, ...)
github.com/elastic/beats/v7/libbeat/cmd/instance/beat.go:226 +0x1b fp=0xc00209fbf0 sp=0xc00209fbd0 pc=0x560264debe5b
github.com/elastic/beats/v7/libbeat/cmd.genRunCmd.func1(0xc0011c6600?, {0x560266768247?, 0x4?, 0x56026676824b?})
github.com/elastic/beats/v7/libbeat/cmd/run.go:37 +0x58 fp=0xc00209fcc0 sp=0xc00209fbf0 pc=0x560264e03058
github.com/spf13/cobra.(*Command).execute(0xc000d73c08, {0xc000142010, 0xb, 0xb})
github.com/spf13/cobra@v1.8.1/command.go:989 +0xab1 fp=0xc00209fe48 sp=0xc00209fcc0 pc=0x560262b3ded1
github.com/spf13/cobra.(*Command).ExecuteC(0xc000d73c08)
github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff fp=0xc00209ff20 sp=0xc00209fe48 pc=0x560262b3e81f
github.com/spf13/cobra.(*Command).Execute(0xc0000061c0?)
github.com/spf13/cobra@v1.8.1/command.go:1041 +0x13 fp=0xc00209ff38 sp=0xc00209ff20 pc=0x560262b3e373
main.main()
github.com/elastic/beats/v7/x-pack/filebeat/main.go:23 +0x1a fp=0xc00209ff50 sp=0xc00209ff38 pc=0x560266764d1a
runtime.main()
runtime/proc.go:271 +0x29d fp=0xc00209ffe0 sp=0xc00209ff50 pc=0x56026220f69d
runtime.goexit({})
runtime/asm_amd64.s:1695 +0x1 fp=0xc00209ffe8 sp=0xc00209ffe0 pc=0x5602622498e1
goroutine 2 gp=0xc000006c40 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)