# Not able to configure Index pattern on date field

**URL:** <https://discuss.elastic.co/t/not-able-to-configure-index-pattern-on-date-field/36823>\
**Category:** Kibana\
**Created:** [December 10, 2015, 3:21am UTC](https://discuss.elastic.co/t/not-able-to-configure-index-pattern-on-date-field/36823 "2015-12-10T03:21:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [December 10, 2015, 3:21am UTC](https://discuss.elastic.co/t/not-able-to-configure-index-pattern-on-date-field/36823/1 "2015-12-10T03:21:04Z")

</div>

Hi Experts ,

In ES 2.1 I have created following index . It has 2 date fields , Publish\_date and test\_date but in kibana when I am configuring an Index pattern I can only see publish\_date in the time filed drop down .So my question is

1. why only publish\_date why not test\_date also be there

2. After selecting publish\_date why Kibana throwing an error in discover page `"Discover: An error occurred with your request. Reset your inputs and try again."`

This is what I can see in the setting of this index

![](https://us1.discourse-cdn.com/elastic/original/2X/7/7e79c8d3443f10cce553d1617da5a340729900ef.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 10, 2015, 3:29am UTC](https://discuss.elastic.co/t/not-able-to-configure-index-pattern-on-date-field/36823/2 "2015-12-10T03:29:22Z")

</div>

It's cause the `test_date` has been created as a string, you should set explicit mappings to make sure it will be a datetime, and then reindex.

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [December 10, 2015, 3:34am UTC](https://discuss.elastic.co/t/not-able-to-configure-index-pattern-on-date-field/36823/3 "2015-12-10T03:34:46Z")

</div>

So I set explicit mapping and again reindex. I can see both the date fileds in the selection but Discover tab is still throwing an error **`"Discover: An error occurred with your request. Reset your inputs and try again."`**

```
PUT library
{
  "mappings": {
  "my_type": {
 "properties": {
"date": {
  "type": "date",
  "format": "yyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
 }
}
}
  }
}
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 11, 2015, 2:10am UTC](https://discuss.elastic.co/t/not-able-to-configure-index-pattern-on-date-field/36823/4 "2015-12-11T02:10:14Z")

</div>

Check your KB and ES logs?

---

<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, 2:06pm UTC](https://discuss.elastic.co/t/not-able-to-configure-index-pattern-on-date-field/36823/5 "2017-07-06T14:06:48Z")

</div>


