# Accessing field in date\_index\_name processor

**URL:** <https://discuss.elastic.co/t/accessing-field-in-date-index-name-processor/84200>\
**Category:** Elasticsearch\
**Created:** [May 2, 2017, 5:07am UTC](https://discuss.elastic.co/t/accessing-field-in-date-index-name-processor/84200 "2017-05-02T05:07:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginger](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@ginger](https://discuss.elastic.co/u/ginger)\
**Post date:** [May 2, 2017, 5:07am UTC](https://discuss.elastic.co/t/accessing-field-in-date-index-name-processor/84200/1 "2017-05-02T05:07:50Z")

</div>

Hi.

I am using ingest node processor to overwrite index name, and I access field in date\_index\_name processor:

> ```
> PUT _ingest/pipeline/monthlyindex
> {
> "description": "monthly date-time index naming",
> "processors" : [
> {
> "date_index_name" : {
> "field" : "date1",
> "index_name_prefix" : "{{ _index }}-",
> "date_rounding" : "M"
> }
> }
> ]
> }
> 
> ```

When I put an event:  
\> PUT /myindex/type/1?pipeline=monthlyindex  
\> {  
\> "date1" : "2016-04-25T12:02:01.789Z"  
\> }

I get the following response:

> ```
> {
> "error": {
> "root_cause": [
> {
> "type": "illegal_argument_exception",
> "reason": "Illegal pattern component: i"
> }
> ],
> "type": "illegal_argument_exception",
> "reason": "Illegal pattern component: i"
> },
> "status": 400
> }
> 
> ```

Access field in other processor works. Is there something wrong?  
Any help would be appreciated!

---

<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:** [May 30, 2017, 5:21am UTC](https://discuss.elastic.co/t/accessing-field-in-date-index-name-processor/84200/2 "2017-05-30T05:21:24Z")

</div>

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