It seems the filebeat I installed in Window environment keep crashing before send any log files into logstash.
currently I am using filebeat version 1.1.1 and later tested with 1.2.3 however the results are the same.
Here is the my config file:
filebeat:
# List of prospectors to fetch data.
prospectors:
-
paths:
- "//test/temp/Spark/27/*.log"
- "//test/temp/Spark/28/*.log"
input_type: log
encoding: utf-8
multiline:
pattern: "Time of Log: [[:digit:]]{1,2}/[[:digit:]]{1,2}/[[:digit:]]{4}"
negate: true
match: after
max_lines: 8000
exclude_lines: ["\\*\\*Event:"]
timeout: 60s
document_type: spark_client_log
exclude_files: [".TXT$", ".XML$", ".msi$", ".exe$"]
scan_frequency: 15s
backoff: 30s
max_backoff: 200s
ignore_older: 240h
spool_size: 50
registry_file: "C:/ProgramData/filebeat/sparkclientregistry"
idle_timeout: 50s
output:
### Logstash as output
logstash:
# The Logstash hosts
hosts: ["localhost:5044"]
And output from my debug window captured this:
**Event: Long Running Process
2016/08/16 01:15:34.011052 reader.go:138: DBG End of file reached: \\lfvicprdw033\temp\Spark\27\Spark_LNSP0092_Nick Pir
piris_Network Timeout_201608131154219303.log; Backoff now.
2016/08/16 01:15:34.016053 prospector.go:364: DBG Launching harvester on new file: \\server033\temp\Spark\27\M
P0138_tester_Long Running Process_201608090909547751.log
2016/08/16 01:15:34.017033 prospector.go:259: DBG Check file for harvesting: \\server033\temp\Spark\27\MP013
8_tester_Long Running Process_201608090913499135.log
fatal error: runtime: failed to release pages
2016/08/16 01:15:34.018033 prospector.go:315: DBG Start harvesting unknown file: \\lfvicprdw033\temp\Spark\27\Long Running Process_201608090913499135.log
runtime stack:
runtime.throw(0x86e080, 0x20)
/usr/local/go/src/runtime/panic.go:527 +0x7f
runtime.sysFree(0x0, 0x10000000, 0xf5fdb0)
/usr/local/go/src/runtime/mem_windows.go:86 +0x5b
runtime.mHeap_SysAlloc(0xac5e60, 0x100000, 0xf5fee8)
/usr/local/go/src/runtime/malloc.go:418 +0x4a1
runtime.mHeap_Grow(0xac5e60, 0x8, 0x0)
/usr/local/go/src/runtime/mheap.go:628 +0x52
runtime.mHeap_AllocSpanLocked(0xac5e60, 0x1, 0x43199364)
/usr/local/go/src/runtime/mheap.go:532 +0x574
runtime.mHeap_Alloc_m(0xac5e60, 0x1, 0x1f, 0x127c4500, 0x43199364)
/usr/local/go/src/runtime/mheap.go:425 +0x281
runtime.mHeap_Alloc.func1()
/usr/local/go/src/runtime/mheap.go:484 +0x3d
runtime.systemstack(0xf5feac)
/usr/local/go/src/runtime/asm_386.s:283 +0x81
runtime.mHeap_Alloc(0xac5e60, 0x1, 0x1f, 0x27f0100, 0xc4f5)
/usr/local/go/src/runtime/mheap.go:485 +0x5a
runtime.mCentral_Grow(0xacbe90, 0x0)
/usr/local/go/src/runtime/mcentral.go:190 +0x8e
runtime.mCentral_CacheSpan(0xacbe90, 0x62e417f8)
/usr/local/go/src/runtime/mcentral.go:86 +0x439
runtime.mCache_Refill(0x1904a8, 0x1f, 0x3)
/usr/local/go/src/runtime/mcache.go:118 +0xae
runtime.mallocgc.func2()
/usr/local/go/src/runtime/malloc.go:614 +0x2b
runtime.systemstack(0x127c0000)
/usr/local/go/src/runtime/asm_386.s:267 +0x57
runtime.mstart()
/usr/local/go/src/runtime/proc1.go:668
goroutine 14640 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_386.s:222 fp=0x20945cb8 sp=0x20945cb4
runtime.mallocgc(0x400, 0x73d900, 0x1, 0x400)
/usr/local/go/src/runtime/malloc.go:615 +0x65a fp=0x20945d20 sp=0x20945cb8
runtime.newarray(0x73d900, 0x400, 0x400)
/usr/local/go/src/runtime/malloc.go:780 +0xbc fp=0x20945d44 sp=0x20945d20
runtime.makeslice(0x732b40, 0x400, 0x0, 0x400, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/slice.go:32 +0x180 fp=0x20945d84 sp=0x20945d44
github.com/elastic/beats/filebeat/harvester/encoding.(*LineReader).decode(0x1ad66e80, 0x70, 0x37bf34e0, 0x0, 0x0)
/go/src/github.com/elastic/beats/filebeat/harvester/encoding/reader.go:151 +0x5f fp=0x20945dfc sp=0x20945d84
github.com/elastic/beats/filebeat/harvester/encoding.(*LineReader).advance(0x1ad66e80, 0x0, 0x0)
/go/src/github.com/elastic/beats/filebeat/harvester/encoding/reader.go:134 +0x9a fp=0x20945e98 sp=0x20945dfc
github.com/elastic/beats/filebeat/harvester/encoding.(*LineReader).Next(0x1ad66e80, 0x0, 0x0, 0x0, 0x13, 0x0, 0x0)
Could anyone please give me some hints for how to fix it.
Regards,
Allen