# File ingest timestamp question

**URL:** <https://discuss.elastic.co/t/file-ingest-timestamp-question/290566>\
**Category:** Logstash\
**Created:** [November 30, 2021, 2:55pm UTC](https://discuss.elastic.co/t/file-ingest-timestamp-question/290566 "2021-11-30T14:55:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hagaluly](https://avatars.discourse-cdn.com/v4/letter/h/d78d45/32.png) [@hagaluly](https://discuss.elastic.co/u/hagaluly)\
**Post date:** [November 30, 2021, 2:55pm UTC](https://discuss.elastic.co/t/file-ingest-timestamp-question/290566/1 "2021-11-30T14:55:02Z")

</div>

by default when i ingest a single json file kibana present timestamp at the time of the ingesting process. is there a way to use a timestamp record within the json and present it in kibana as the ingesting time?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 30, 2021, 3:07pm UTC](https://discuss.elastic.co/t/file-ingest-timestamp-question/290566/2 "2021-11-30T15:07:27Z")

</div>

Sure, you need to parse your `json` message using the `json` filter, and then apply the [date filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html).

This will store the value of the timestamp record in your document in the `@timestamp` field.

What does your pipeline and document looks like?

---

<div class="post-metadata">

**Author:** ![hagaluly](https://avatars.discourse-cdn.com/v4/letter/h/d78d45/32.png) [@hagaluly](https://discuss.elastic.co/u/hagaluly)\
**Post date:** [November 30, 2021, 3:25pm UTC](https://discuss.elastic.co/t/file-ingest-timestamp-question/290566/3 "2021-11-30T15:25:45Z")

</div>

looks like this

```auto
input {
  file {
    start_position => "beginning"
    type => "json"
    codec => "json"
    path => "/data/elastic/*.json"
    sincedb_path => "/dev/null"
  }
}
output {
  elasticsearch {
    hosts => ["10.10.10.10:9200"]
    index => "jenkins"
  }
}

```

---

<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:** [December 28, 2021, 3:25pm UTC](https://discuss.elastic.co/t/file-ingest-timestamp-question/290566/4 "2021-12-28T15:25:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
