# Logstash deal with 24:00 time representation

**URL:** <https://discuss.elastic.co/t/logstash-deal-with-24-00-time-representation/163007>\
**Category:** Logstash\
**Created:** [January 4, 2019, 7:40pm UTC](https://discuss.elastic.co/t/logstash-deal-with-24-00-time-representation/163007 "2019-01-04T19:40:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [January 7, 2019, 9:44pm UTC](https://discuss.elastic.co/t/logstash-deal-with-24-00-time-representation/163007/2 "2019-01-07T21:44:19Z")

</div>

If you are parsing it with a date filter one option would be to mutate+gsub 24:00 to 23:59 before the date filter, and optionally use a ruby filter conditional upon the presense of 24:00 in the original field to add 60 seconds to the resulting date (using code similar to [this](https://discuss.elastic.co/t/convert-a-column-in-csv-to-hour-time/163098/2)).

---

_[View the full topic](https://discuss.elastic.co/t/logstash-deal-with-24-00-time-representation/163007)._
