# Logstash log formatting

**URL:** <https://discuss.elastic.co/t/logstash-log-formatting/41246>\
**Category:** Logstash\
**Created:** [February 9, 2016, 7:26am UTC](https://discuss.elastic.co/t/logstash-log-formatting/41246 "2016-02-09T07:26:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkatesh](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@venkatesh](https://discuss.elastic.co/u/venkatesh)\
**Post date:** [February 9, 2016, 7:26am UTC](https://discuss.elastic.co/t/logstash-log-formatting/41246/1 "2016-02-09T07:26:56Z")

</div>

Hi team,

i am new to logstash. I installed elastic search, logstash,kibana in one linux server. Iam able to parse the logs to elastic search and able to view in Kibana. My requirement ,i need to see historical data in kibana.  
For example if i have a log file generated at 10-Jan-2015. If i ran in logstash config file, kibana is taking as a logs generated at that time and displaying current date and time.

Could you please let us know how to achieve this functionality in logstash.

---

<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:** [February 9, 2016, 8:56am UTC](https://discuss.elastic.co/t/logstash-log-formatting/41246/2 "2016-02-09T08:56:47Z")

</div>

Use the [date filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html) to parse timestamp strings found in the log files and storing them in the `@timestamp` field, which is what Kibana normally uses.

---

<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:12am UTC](https://discuss.elastic.co/t/logstash-log-formatting/41246/3 "2017-07-06T05:12:35Z")

</div>


