# Setting id field in client request and also using date name processor

**URL:** <https://discuss.elastic.co/t/setting-id-field-in-client-request-and-also-using-date-name-processor/261968>\
**Category:** Elasticsearch\
**Created:** [January 23, 2021, 1:05am UTC](https://discuss.elastic.co/t/setting-id-field-in-client-request-and-also-using-date-name-processor/261968 "2021-01-23T01:05:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smruthip](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@smruthip](https://discuss.elastic.co/u/smruthip)\
**Post date:** [January 23, 2021, 1:05am UTC](https://discuss.elastic.co/t/setting-id-field-in-client-request-and-also-using-date-name-processor/261968/1 "2021-01-23T01:05:03Z")

</div>

Hi all,

I had a question about sending id field in the client request and also using the date name processor to create indices based on a field value.

So here is my use case , I want to produce daily indices based on a particular field value. I am sending my data using python script from Lambda function

my PUT call looks something like this

`PUT /my_index/doc/_id`

(here again I am passing id field in the request to eliminate duplicates)

in the dev console, I created an ingest pipeline

```auto
PUT _ingest/pipeline/daily
{
  "description": "daily date index naming",
  "processors" : [
    {
      "date_index_name" : {
        "field" : "datetimefield",
        "index_name_prefix" : "my_index-",
        "date_rounding" : "d",
        "date_formats": ["yyyy-MM-dd"]
      }
    }
  ]
}

```

and

set the default pipeline for

```auto
PUT my_index
{
  "settings": {
    "default_pipeline": "daily"
  }
}

```

when I test it out, its not sending any data to the cluster nor created any new index. Not sure what I am doing wrong here. Any insight would be helpful.

Thank you!

---

<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:** [February 20, 2021, 1:05am UTC](https://discuss.elastic.co/t/setting-id-field-in-client-request-and-also-using-date-name-processor/261968/2 "2021-02-20T01:05:17Z")

</div>

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