# Query in Runtime Field

**URL:** <https://discuss.elastic.co/t/query-in-runtime-field/305165>\
**Category:** Kibana\
**Created:** [May 19, 2022, 10:14am UTC](https://discuss.elastic.co/t/query-in-runtime-field/305165 "2022-05-19T10:14:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivendra95](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@shivendra95](https://discuss.elastic.co/u/shivendra95)\
**Post date:** [May 19, 2022, 10:14am UTC](https://discuss.elastic.co/t/query-in-runtime-field/305165/1 "2022-05-19T10:14:28Z")

</div>

Hi,  
I'm creating a runtime field and want to fetch data from Elasticsearch by performing a query.  
Below is my query

```auto
GET prod_logistic_parcel_index/_search
{
  "query": {
    "query_string": {
      "query": "(7111681250) AND (NEW)",
      "default_field": "json.message"
    }
  },
  "fields": [
         
    {
      "field": "json.@timestamp",
      "format": "epoch_millis" 
    }
  ],
  "_source": false
}

```

In the above query I'm getting the timestamp field from another document.  
Is the above way possible to do in kibana or is there any other way from where I can get a field value from another document in the runtime field?

---

<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:** [June 16, 2022, 10:15am UTC](https://discuss.elastic.co/t/query-in-runtime-field/305165/2 "2022-06-16T10:15:25Z")

</div>

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