# \[Universal Profiling\] Indexes are empty

**URL:** <https://discuss.elastic.co/t/universal-profiling-indexes-are-empty/355814>\
**Category:** APM\
**Tags:** open-telemetry\
**Created:** [March 20, 2024, 1:22pm UTC](https://discuss.elastic.co/t/universal-profiling-indexes-are-empty/355814 "2024-03-20T13:22:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakub\_Zilinek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jakub_zilinek/32/121850_2.png) [@Jakub\_Zilinek](https://discuss.elastic.co/u/Jakub_Zilinek)\
**Post date:** [March 20, 2024, 1:22pm UTC](https://discuss.elastic.co/t/universal-profiling-indexes-are-empty/355814/1 "2024-03-20T13:22:07Z")

</div>

Hello,  
I am currently exploring the functionality of Elastic Universal Profiling and have encountered an issue while attempting to query the data stored within Elastic. Specifically, when using the following query:

```auto
orchestrator.resource.name: "foo" and process.thread.name: "java" and container.name: "bar"

```

The returned documents appear to be empty, as illustrated below:

```auto
{
  "_index": ".ds-profiling-events-all-2024.03.20-000007",
  "_id": "8_nvW44B2KTuzYmIYK76",
  "_version": 1,
  "_score": 0
}

```

What is wrong with it, how can i query the data ?

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [April 10, 2024, 8:21am UTC](https://discuss.elastic.co/t/universal-profiling-indexes-are-empty/355814/2 "2024-04-10T08:21:09Z")

</div>

Hi,

The fact that you're seeing hits, means that at least some documents match your query. You're not seeing any data because we have disabled `_source` to save storage space. You can however, specify `docvalue_fields` to retrieve properties from the matching docs. Here's an example:

```auto
GET /profiling-events-all/_search
{
  "query": {
    "bool": {
      "filter": [
        {
          "range": {
            "@timestamp": {
              "gte": "2024-04-10 00:00:00",
              "lt": "2024-04-10 23:00:00",
              "format": "yyyy-MM-dd HH:mm:ss"
            }
          }
        }
      ]
    }
  },
  "size": 3,
  "docvalue_fields": [
    "*.*"
  ]
}

```

I understand that you want to perform this query for debug purposes but please note that the `profiling-*` datastreams and indices are not meant for direct consumption usually. For regular use you should therefore rely on the Kibana UI.

Cheers,  
Daniel

---

<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 8, 2024, 8:21am UTC](https://discuss.elastic.co/t/universal-profiling-indexes-are-empty/355814/3 "2024-05-08T08:21:50Z")

</div>

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