# Set "Time Filter field" name from filebeat

**URL:** <https://discuss.elastic.co/t/set-time-filter-field-name-from-filebeat/170614>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 3, 2019, 8:23am UTC](https://discuss.elastic.co/t/set-time-filter-field-name-from-filebeat/170614 "2019-03-03T08:23:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kathir\_J](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kathir\_J](https://discuss.elastic.co/u/Kathir_J)\
**Post date:** [March 3, 2019, 8:23am UTC](https://discuss.elastic.co/t/set-time-filter-field-name-from-filebeat/170614/1 "2019-03-03T08:23:08Z")

</div>

From filebeat, If I create default template name, by default takes @timestamp but what I want is I need to pass logtimestamp as default time filter field.

```
setup.template.name: "org-n4-apex"
setup.template.pattern: "org-n4-apex"
setup.dashboards.index: "org-apex-*"

```

I understand it needs to be in date format. So with that, how do i set one date field as default time filter field from filebeat.?

---

<div class="post-metadata">

**Author:** ![Kathir\_J](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kathir\_J](https://discuss.elastic.co/u/Kathir_J)\
**Post date:** [March 5, 2019, 12:26pm UTC](https://discuss.elastic.co/t/set-time-filter-field-name-from-filebeat/170614/2 "2019-03-05T12:26:50Z")

</div>

Would appreciate reply

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [March 6, 2019, 3:34pm UTC](https://discuss.elastic.co/t/set-time-filter-field-name-from-filebeat/170614/3 "2019-03-06T15:34:48Z")

</div>

@Kathir_J I think if I undestand correctly, you want to create an index based on the date of another field and not the @timestamp? If this is correctly you have to use the pipeline for the [Ingest Node](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/ingest.html) to achieve that. First you will need to parse the date with the [Date Processor](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/date-processor.html) and use the [Date Index Name Processor](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/date-index-name-processor.html) to correct use that field as the index name.

---

<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:** [April 3, 2019, 3:34pm UTC](https://discuss.elastic.co/t/set-time-filter-field-name-from-filebeat/170614/4 "2019-04-03T15:34:49Z")

</div>

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