# Crashing 5.0.0-alpha1

**URL:** <https://discuss.elastic.co/t/crashing-5-0-0-alpha1/48212>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 22, 2016, 11:45pm UTC](https://discuss.elastic.co/t/crashing-5-0-0-alpha1/48212 "2016-04-22T23:45:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoungeFlyZ](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@LoungeFlyZ](https://discuss.elastic.co/u/LoungeFlyZ)\
**Post date:** [April 22, 2016, 11:45pm UTC](https://discuss.elastic.co/t/crashing-5-0-0-alpha1/48212/1 "2016-04-22T23:45:42Z")

</div>

I am hitting a problem where filebeat is crashing 5.0.0-alpha1 like this:

```
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0xa0 pc=0x4bb6a2]
 
goroutine 25 [running]:
panic(0x9b5320, 0xc820018080)
/usr/local/go/src/runtime/panic.go:464 +0x3e6
github.com/elastic/beats/libbeat/common.ConvertToGenericEvent(0xc8204012c0, 0x7)
/go/src/github.com/elastic/beats/libbeat/common/event.go:47 +0x252
github.com/elastic/beats/libbeat/publisher.(*client).filterEvent(0xc820148bc0, 0xc8204012c0, 0xc820026e20)
/go/src/github.com/elastic/beats/libbeat/publisher/client.go:184 +0x30
github.com/elastic/beats/libbeat/publisher.(*client).PublishEvents(0xc820148bc0, 0xc8203c0c00, 0x7d, 0x7d, 0xc820419490, 0x2, 0x2, 0x0)
/go/src/github.com/elastic/beats/libbeat/publisher/client.go:134 +0xc6
github.com/elastic/beats/filebeat/beater.(*syncLogPublisher).Start.func1(0xc820149140)
/go/src/github.com/elastic/beats/filebeat/beater/publish.go:103 +0x3bb
created by github.com/elastic/beats/filebeat/beater.(*syncLogPublisher).Start
/go/src/github.com/elastic/beats/filebeat/beater/publish.go:113 +0x58

```

I am playing with 5.0.0-alpha1 for the JSON support. I am using the same filebeat.yml file as with 1.2 _except_ with the added JSON section:

```
filebeat:

  registry_file: "/antrea/logs/.filebeat"
  
  prospectors:

    -

      paths:
        - "/antrea/logs/*.*.log.*" 

      document_type: antrea
      
      json:
        message_key: message
        keys_under_root: true
        add_error_key: true

      registry_file: "/antrea/logs/.filebeat"
      
output:
  elasticsearch:

    hosts: ["http://REMOVED:9200"]

    username: "REMOVED"
    password: "REMOVED"

    index: "filebeat"
    
logging:
  level: debug

  to_files: true

  to_syslog: false

  files:
    path: /var/log/antrea-filebeat
    name: antrea-filebeat.log
    keepfiles: 7

```

Any ideas?

Edit: repro'd on OSX and linux (debian:jessie)

Edit 2: Here are the log files i am testing this with that repro this issue.  
[https://dl.dropboxusercontent.com/u/27238389/logs.zip](https://dl.dropboxusercontent.com/u/27238389/logs.zip)

Edit 3: formatting

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [April 25, 2016, 7:31am UTC](https://discuss.elastic.co/t/crashing-5-0-0-alpha1/48212/2 "2016-04-25T07:31:18Z")

</div>

For reference: [https://github.com/elastic/beats/issues/1466](https://github.com/elastic/beats/issues/1466)

---

<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:** [July 5, 2017, 9:52pm UTC](https://discuss.elastic.co/t/crashing-5-0-0-alpha1/48212/3 "2017-07-05T21:52:49Z")

</div>


