# @timestamp error

**URL:** <https://discuss.elastic.co/t/timestamp-error/37369>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 16, 2015, 3:52pm UTC](https://discuss.elastic.co/t/timestamp-error/37369 "2015-12-16T15:52:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alleycat](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Alleycat](https://discuss.elastic.co/u/Alleycat)\
**Post date:** [December 16, 2015, 3:52pm UTC](https://discuss.elastic.co/t/timestamp-error/37369/1 "2015-12-16T15:52:36Z")

</div>

I have filebeat sending Apache logs to logstash which is located on another server.

Logstash shows the following error:

```
{:timestamp=>"2015-12-16T15:32:05.053000+0000", :message=>"Beats input: unhandled exception", :exception=>#<TypeError: The field '@timestamp' must be a (LogStash::Timestamp, not a String (2015-12-16T15:31:03.326Z)>

```

I have verified the connection between the servers and, as logstash is generating this error, it must be receiving data from filebeat.

running filebeat with -d publish I can see:

```
2015/12/16 15:18:35.584066 publish.go:100: DBG Publish: {
  "@timestamp": "2015-12-16T15:18:35.324Z",
  "beat": {
      "hostname":  
      ....

```

I have minimal conf for filebeat:

```
############################# Filebeat ######################################

filebeat:
  # List of prospectors to fetch data.
  prospectors:
    # Apache logs
    -
      paths:
        - /var/log/apache2/*.log

############################# Output ##########################################

output:
  logstash:
    enabled: true
    hosts: ["xx.xx.xx.xx:5043"]

```

and minimal conf for log stash:

```
input {
    beats {
        port => 5043
    }
}
output {
    elasticsearch {
        hosts => "localhost:9200"
    }
}

```

I have tried using the date match filter (with various formats) in the logstash conf ie:

```
date {
      match => ["timestamp", "dd/MMM/yyyy:HH:mm:ss Z"]
}

```

I'm all google out now, anyone know how I can fix this?

Thanks - Paul

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [December 17, 2015, 6:38pm UTC](https://discuss.elastic.co/t/timestamp-error/37369/2 "2015-12-17T18:38:26Z")

</div>

which logstash version and plugin have you installed? I think it was fixed in logstash-input-beats plugin version 0.9.4.

---

<div class="post-metadata">

**Author:** ![Alleycat](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Alleycat](https://discuss.elastic.co/u/Alleycat)\
**Post date:** [December 22, 2015, 3:37pm UTC](https://discuss.elastic.co/t/timestamp-error/37369/3 "2015-12-22T15:37:34Z")

</div>

Thanks for the reply Steffen and yes, it was a version issue, I was running 0.9.2

I found this [post](http://blog.dasrecht.net/2015/12/14/filebeat-logstash-beats-input-undhandled-exception/) which gave me a clue and I tried updating the plugin to the latest version. This led to dependency issues so I installed the latest version of logstash (all plugins) over the top and it worked.

Thanks - Paul

---

<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:57pm UTC](https://discuss.elastic.co/t/timestamp-error/37369/4 "2017-07-05T21:57:19Z")

</div>


