# Filebeat crash each day

**URL:** <https://discuss.elastic.co/t/filebeat-crash-each-day/193139>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 31, 2019, 2:25pm UTC](https://discuss.elastic.co/t/filebeat-crash-each-day/193139 "2019-07-31T14:25:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![j0nathan33](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j0nathan33/32/45092_2.png) [@j0nathan33](https://discuss.elastic.co/u/j0nathan33)\
**Post date:** [July 31, 2019, 2:25pm UTC](https://discuss.elastic.co/t/filebeat-crash-each-day/193139/1 "2019-07-31T14:25:16Z")

</div>

Hi,

I use last version on filebeat (7.2.1) and my filebeat crash every day on this error : "invalid memory address or nil pointer dereference" (same error on 7.2.0). Only way to restart filebeat, it's to remove some "filebeat.config.inputs" config file

StackTrace:

> **Summary**
>
> ```
> panic: runtime error: invalid memory address or nil pointer dereference [recovered]
> panic: Panic at 5: runtime error: invalid memory address or nil pointer dereference [recovered]
> panic: Panic at 5: runtime error: invalid memory address or nil pointer dereference
> [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x16c6695]
>  
> goroutine 106 [running]:
> github.com/elastic/beats/vendor/github.com/dop251/goja.AssertFunction.func1.1(0xc00002f8d0)
> /go/src/github.com/elastic/beats/vendor/github.com/dop251/goja/runtime.go:1429 +0x9b
> panic(0x190cde0, 0xc0001d44b0)
> /usr/local/go/src/runtime/panic.go:522 +0x1b5
> github.com/elastic/beats/vendor/github.com/dop251/goja.(*vm).try.func1(0xc0003b5ad0, 0x0, 0xc00002f7d8, 0x0, 0x0, 0x0, 0xc00002f830)
> /go/src/github.com/elastic/beats/vendor/github.com/dop251/goja/vm.go:364 +0x48e
> panic(0x191d760, 0x2990200)
> /usr/local/go/src/runtime/panic.go:522 +0x1b5
> github.com/elastic/beats/vendor/github.com/dop251/goja.(*vm).run(0xc0003b5ad0)
> /go/src/github.com/elastic/beats/vendor/github.com/dop251/goja/vm.go:288 +0x75
> github.com/elastic/beats/vendor/github.com/dop251/goja.(*funcObject).Call(0xc00003c780, 0x1ce8d40, 0x2bebfe0, 0xc0002f9f10, 0x1, 0x1, 0x1a3fa01, 0xc000518900)
> /go/src/github.com/elastic/beats/vendor/github.com/dop251/goja/func.go:130 +0x2c4
> github.com/elastic/beats/vendor/github.com/dop251/goja.AssertFunction.func1.2()
> /go/src/github.com/elastic/beats/vendor/github.com/dop251/goja/runtime.go:1434 +0x96
> github.com/elastic/beats/vendor/github.com/dop251/goja.(*vm).try(0xc0003b5ad0, 0xc00002f848, 0x0)
> /go/src/github.com/elastic/beats/vendor/github.com/dop251/goja/vm.go:370 +0x10d
> github.com/elastic/beats/vendor/github.com/dop251/goja.AssertFunction.func1(0x1ce8d40, 0x2bebfe0, 0xc0002f9f10, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)
> /go/src/github.com/elastic/beats/vendor/github.com/dop251/goja/runtime.go:1433 +0x10d
> github.com/elastic/beats/libbeat/processors/script/javascript.(*session).runProcessFunc(0xc0000df3b0, 0xc000489a00, 0x0, 0x0, 0x0)
> /go/src/github.com/elastic/beats/libbeat/processors/script/javascript/session.go:222 +0x12c
> github.com/elastic/beats/libbeat/processors/script/javascript.(*jsProcessor).Run(0xc0000f2fc0, 0xc000489a00, 0xc000489a00, 0x0, 0x0)
> /go/src/github.com/elastic/beats/libbeat/processors/script/javascript/javascript.go:163 +0x79
> github.com/elastic/beats/libbeat/publisher/processing.(*group).Run(0xc0002c0f60, 0xc000489a00, 0xc000489a00, 0x0, 0x0)
> /go/src/github.com/elastic/beats/libbeat/publisher/processing/processors.go:101 +0x94
> github.com/elastic/beats/libbeat/publisher/processing.(*group).Run(0xc00041fc20, 0xc000489a00, 0x708abc93d, 0x2bce360, 0x0)
> /go/src/github.com/elastic/beats/libbeat/publisher/processing/processors.go:101 +0x94
> github.com/elastic/beats/libbeat/publisher/pipeline.(*client).publish(0xc000146cc0, 0xbf48853b9f768385, 0x708ae1c80, 0x2bce360, 0x0, 0xc000266c30, 0x1a63c00, 0xc000913c20, 0x0)
> /go/src/github.com/elastic/beats/libbeat/publisher/pipeline/client.go:85 +0x5c3
> github.com/elastic/beats/libbeat/publisher/pipeline.(*client).Publish(0xc000146cc0, 0xbf48853b9f768385, 0x708ae1c80, 0x2bce360, 0x0, 0xc000266c30, 0x1a63c00, 0xc000913c20, 0x0)
> /go/src/github.com/elastic/beats/libbeat/publisher/pipeline/client.go:64 +0x9c
> github.com/elastic/beats/filebeat/channel.(*outlet).OnEvent(0xc00041fce0, 0xc000493ad0, 0x1cc2e01)
> /go/src/github.com/elastic/beats/filebeat/channel/outlet.go:70 +0x1a6
> github.com/elastic/beats/filebeat/channel.SubOutlet.func1(0xc0004a0000, 0x1cc2d40, 0xc00041fce0)
> /go/src/github.com/elastic/beats/filebeat/channel/util.go:54 +0x61
> created by github.com/elastic/beats/filebeat/channel.SubOutlet
> /go/src/github.com/elastic/beats/filebeat/channel/util.go:52 +0xf8
> 
> ```

---

<div class="post-metadata">

**Author:** ![j0nathan33](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/j0nathan33/32/45092_2.png) [@j0nathan33](https://discuss.elastic.co/u/j0nathan33)\
**Post date:** [July 31, 2019, 2:28pm UTC](https://discuss.elastic.co/t/filebeat-crash-each-day/193139/2 "2019-07-31T14:28:25Z")

</div>

Config file:

> **Summary**
>
> ```
> filebeat.config.inputs:
> enabled: true
> path: ${path.config}/config/*.yml
> reload.enabled: true
> reload.period: 30s
> filebeat.config.modules:
> path: ${path.config}/modules.d/*.yml
> reload.enabled: false
> setup.template.settings:
> index.number_of_shards: 100
> index.mapping.nested_fields.limit: 200
> index.mapping.nested_objects.limit: 200000
> setup.kibana:
> output.logstash:
> hosts: ["10.136.147.40:5045"]
> processors:
> - add_host_metadata: ~
> - decode_json_fields:
> fields: ['message']
> target: ""
> overwrite_keys: true
> max_depth: 100
> - script:
> lang: javascript
> id: my_filter
> file: ${path.config}/script/config-abc.js
> - if:
> equals: 
> abv_role: "access"
> then:
> - script:
> lang: javascript
> id: my_filter_access
> file: ${path.config}/script/config-access.js
> - convert:
> fields:
> - {from: "ext.abc.response.executionTime", type: "double"}
> - {from: "ext.abc.response.status", type: "long"}
> ignore_missing: true
> fail_on_error: false
> else:
> - convert:
> fields:
> - {from: "ext.abc.request.ipaddr", type: "ip"}
> ignore_missing: true
> fail_on_error: false
> 
> ```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 28, 2019, 2:28pm UTC](https://discuss.elastic.co/t/filebeat-crash-each-day/193139/3 "2019-08-28T14:28:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
