# Unusual date conversion

**URL:** <https://discuss.elastic.co/t/unusual-date-conversion/31652>\
**Category:** Logstash\
**Created:** [October 5, 2015, 4:44pm UTC](https://discuss.elastic.co/t/unusual-date-conversion/31652 "2015-10-05T16:44:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktella](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@ktella](https://discuss.elastic.co/u/ktella)\
**Post date:** [October 5, 2015, 4:44pm UTC](https://discuss.elastic.co/t/unusual-date-conversion/31652/1 "2015-10-05T16:44:46Z")

</div>

Team,

My Thanks to Community for helping me to get this far in implementing ELK succesfully.

Now the issue...

1. I have log with timestamp like this [05/Oct/2015:12:23:42 -0400] How can i change this to something like below.  
"2015-10-05T12:23:42.xxxZ", which is the format of @timestamp stored in elasticsearch.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 5, 2015, 5:06pm UTC](https://discuss.elastic.co/t/unusual-date-conversion/31652/2 "2015-10-05T17:06:52Z")

</div>

This isn't unusual at all. In fact, it looks like a date straight out of an httpd log file. Have a look at this example: [https://www.elastic.co/guide/en/logstash/current/config-examples.html#\_processing\_apache\_logs](https://www.elastic.co/guide/en/logstash/current/config-examples.html#_processing_apache_logs)

---

<div class="post-metadata">

**Author:** ![ktella](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@ktella](https://discuss.elastic.co/u/ktella)\
**Post date:** [October 14, 2015, 7:35pm UTC](https://discuss.elastic.co/t/unusual-date-conversion/31652/3 "2015-10-14T19:35:26Z")

</div>

Thanks a lot Magnus.  
Now i understood this right.

---

<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 6, 2017, 5:26am UTC](https://discuss.elastic.co/t/unusual-date-conversion/31652/4 "2017-07-06T05:26:32Z")

</div>

Closed on July 6, 2017, 5:26am UTC


