# No default Year/month/day for only HH:mm:ss,SSS logs

**URL:** <https://discuss.elastic.co/t/no-default-year-month-day-for-only-hhss-sss-logs/214043>\
**Category:** Logstash\
**Created:** [January 7, 2020, 11:55am UTC](https://discuss.elastic.co/t/no-default-year-month-day-for-only-hhss-sss-logs/214043 "2020-01-07T11:55:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![drubior](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@drubior](https://discuss.elastic.co/u/drubior)\
**Post date:** [January 10, 2020, 12:04pm UTC](https://discuss.elastic.co/t/no-default-year-month-day-for-only-hhss-sss-logs/214043/5 "2020-01-10T12:04:31Z")

</div>

Sorry, it was my fault, the destination index is logstash-aplicacions-2020.01.01

I've seen in other forum post a possible workaround, but I'm not sure if it would be a good solution, because I would have to apply it for every log input with this format, making even more complicated the processing

> [@Time without a date field](https://discuss.elastic.co/t/time-without-a-date-field/27282):
>
> I have logs that only have a time field i.e. HH:mm:ss.SSS but for some reason there are no dates! I want to include today's date to this field called logstoretime. Because if I do not specify a date filter the time difference from when log gets shipped to when it is processed is to large of a gap ~10minutes. So essentially I want it to log by depending on the day it will pull that date and use my HH:mm:ss.SSS Anyone with this experience?

I've also seen in the elastic docs, that it seems that is necessary to provide the year month day info, I don't know how it's been working until a few days... I'm starting to thing that maybe developers changed the log format...

> **[Date field type | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html)**

---

_[View the full topic](https://discuss.elastic.co/t/no-default-year-month-day-for-only-hhss-sss-logs/214043)._
