# Convert iso 8601 timestamp to UNIX\_MS

**URL:** <https://discuss.elastic.co/t/convert-iso-8601-timestamp-to-unix-ms/306693>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [June 8, 2022, 12:17pm UTC](https://discuss.elastic.co/t/convert-iso-8601-timestamp-to-unix-ms/306693 "2022-06-08T12:17:40Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![The-morpho](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@The-morpho](https://discuss.elastic.co/u/The-morpho)\
**Post date:** [June 29, 2022, 9:38am UTC](https://discuss.elastic.co/t/convert-iso-8601-timestamp-to-unix-ms/306693/17 "2022-06-29T09:38:08Z")

</div>

Thanks sir, can You please check this post about an error

> [@Aggregate exception occurred {:ERROR=\>#\<NoMethodERROR: undefined method \`-' for nil:NilClass\>](https://discuss.elastic.co/t/aggregate-exception-occurred-error-nomethoderror-undefined-method-for-nil-nilclass/308435):
>
> Hello, I'm new with elastic, I'm working with logs, I want to process from them a new fields based on aggregation. This the my configuration file input { beats { port =\> 5044 } } filter { json { source =\> "message" remove\_field =\> ["message"] } mutate { gsub =\> ["message", "timestamp", "@timestamp"] } if [event\_type] == "request\_inc" { aggregate { task\_id =\> "%{msg\_uuid}" code =\> 'map["step1Time"] = event.get("@timestamp").to\_f' …

---

_[View the full topic](https://discuss.elastic.co/t/convert-iso-8601-timestamp-to-unix-ms/306693)._
