# Retrieving the APM transaction properties and its types in DSL Query - Elasticsearch

**URL:** <https://discuss.elastic.co/t/retrieving-the-apm-transaction-properties-and-its-types-in-dsl-query-elasticsearch/275006>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [June 4, 2021, 8:22pm UTC](https://discuss.elastic.co/t/retrieving-the-apm-transaction-properties-and-its-types-in-dsl-query-elasticsearch/275006 "2021-06-04T20:22:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoviceESCoder](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@NoviceESCoder](https://discuss.elastic.co/u/NoviceESCoder)\
**Post date:** [June 4, 2021, 8:22pm UTC](https://discuss.elastic.co/t/retrieving-the-apm-transaction-properties-and-its-types-in-dsl-query-elasticsearch/275006/1 "2021-06-04T20:22:10Z")

</div>

I am attempting to create a model class in my [asp.net](http://asp.net) core web app project that contains the list of properties of an APM transaction. Whenever I run the command:

```
GET apm-*-transaction/_search
{
  "query": {
    "match": {
      "_id": "CZuK0nkBiU3wk_hrsN-K"
    }
  }
}

```

it will return the contents of that transaction....

[![enter image description here](https://i.stack.imgur.com/aBjFj.png)](https://i.stack.imgur.com/aBjFj.png)

this is a continuation of the transaction properties from the DSL query cmd:

[![enter image description here](https://i.stack.imgur.com/VJw0v.png)](https://i.stack.imgur.com/VJw0v.png)

I was reading up on [attribute mapping](https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/attribute-mapping.html) for elasticsearch because I wanted to map the attribute `Sec-Ch-Ua` to variable named `SecChUa` so I did the following:

```
[PropertyName("Sec-Ch-Ua")]
public List<String> SecChUa {get; set;} // going to change <String> once I know its type

```

but realized I was doing it incorrectly and `PropertyName` should not be there, but replace that with its type... I needed to figure out the property type of `Sec-Ch-Ua` so I then did the following cmd `GET /apm-*-transaction*` which returned the properties and its type. So I did a search for `Sec-Ch-Ua` but it returns nothing.

**Is this not the correct cmd to retrieve the list of properties of the apm transactions and its type?**

---

<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 25, 2021, 4:22pm UTC](https://discuss.elastic.co/t/retrieving-the-apm-transaction-properties-and-its-types-in-dsl-query-elasticsearch/275006/2 "2021-06-25T16:22:22Z")

</div>

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