# How to make Dev tools request automatic?

**URL:** <https://discuss.elastic.co/t/how-to-make-dev-tools-request-automatic/292308>\
**Category:** Kibana\
**Tags:** painless\
**Created:** [December 17, 2021, 12:26pm UTC](https://discuss.elastic.co/t/how-to-make-dev-tools-request-automatic/292308 "2021-12-17T12:26:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angad\_Panesar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/angad_panesar1/32/79499_2.png) [@Angad\_Panesar1](https://discuss.elastic.co/u/Angad_Panesar1)\
**Post date:** [December 17, 2021, 12:26pm UTC](https://discuss.elastic.co/t/how-to-make-dev-tools-request-automatic/292308/1 "2021-12-17T12:26:58Z")

</div>

How would I make a request **automatically** update the data over time instead of just manually going into dev tools and running the request every time. e.g. after 1 hour. See the request below.

```auto
POST compair_*/_update_by_query?refresh=true
{"script":{"inline":"ctx._source.place = \"no room\"","lang":"painless"},"query":{"match":{"ID":"4c11aeade47c"}}}

```

I tried adding ?refresh=true at the end and it still would not **automatically** update the data. Please can you help me.

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [December 17, 2021, 12:41pm UTC](https://discuss.elastic.co/t/how-to-make-dev-tools-request-automatic/292308/2 "2021-12-17T12:41:53Z")

</div>

I don't believe that is possible.

Seems like what you are looking to do is create an [ingest pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html) that could run this every time new data is ingested. Therefor it's always correct before it even gets indexed.

Here is a simulation on how it would work.

```auto
POST _ingest/pipeline/_simulate
{
  "pipeline": {
    "processors": [
      {
        "set": {
          "field": "place",
          "value": "no room",
          "if": "ctx?.ID == '4c11aeade47c'"
        }
      }
    ]
  },
  "docs": [
    {
      "_source": {
        "ID": "not 4c11aeade47"
      }
    },
    {
      "_source": {
        "ID": "4c11aeade47c"
      }
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![Angad\_Panesar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/angad_panesar1/32/79499_2.png) [@Angad\_Panesar1](https://discuss.elastic.co/u/Angad_Panesar1)\
**Post date:** [December 17, 2021, 7:37pm UTC](https://discuss.elastic.co/t/how-to-make-dev-tools-request-automatic/292308/3 "2021-12-17T19:37:55Z")

</div>

I tried the pipeline method but it still did not work. What I wanted to say was on Dev Tools can the attribute "place" be automatically added with that value when the new data with that ID comes in?

Is there any other way that you can help me please?

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [December 17, 2021, 7:46pm UTC](https://discuss.elastic.co/t/how-to-make-dev-tools-request-automatic/292308/4 "2021-12-17T19:46:38Z")

</div>

Not in Dev Tools. The only way I can think of is using an Ingest Pipeline. What I posted above was just a simulation. You would need build out the pipeline and attach it to your index.

If you run into issues doing that then I would create a new post in the Elasticsearch category and someone might be able to help walk you through it.

---

<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:** [January 14, 2022, 7:47pm UTC](https://discuss.elastic.co/t/how-to-make-dev-tools-request-automatic/292308/5 "2022-01-14T19:47:01Z")

</div>

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