# Automatic tagging based on Lambda Name

**URL:** <https://community.dynatrace.com/t/automatic-tagging-based-on-lambda-name/51210>\
**Category:** Cloud platforms\
**Tags:** aws, tagging, lambda\
**Created:** [April 14, 2025, 8:33am UTC](https://community.dynatrace.com/t/automatic-tagging-based-on-lambda-name/51210 "2025-04-14T08:33:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [April 14, 2025, 8:33am UTC](https://community.dynatrace.com/t/automatic-tagging-based-on-lambda-name/51210/1 "2025-04-14T08:33:13Z")

</div>

Hi All,

We have our application Id in the AWS Lambda name, so we would like to add a tag “AppID” on the entity like:

 ![vishnu_kumar_0-1744619456540.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/2/927e5061328f6b84925e44d6e634754d8cd73a9e.png)

Thought the entitySelector works as required, the tag value is set as the regex itself.

How can apply auto tag for my scenario?

---

<div class="post-metadata">

**Author:** ![yanezza](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yanezza/32/5036_2.png) [@yanezza](https://community.dynatrace.com/u/yanezza)\
**Post date:** [April 14, 2025, 11:50am UTC](https://community.dynatrace.com/t/automatic-tagging-based-on-lambda-name/51210/2 "2025-04-14T11:50:26Z")

</div>

Hi,  
apply a capture group

---

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [April 14, 2025, 12:25pm UTC](https://community.dynatrace.com/t/automatic-tagging-based-on-lambda-name/51210/3 "2025-04-14T12:25:13Z")

</div>

[@yanezza](https://community.dynatrace.com/user/47327)&nbsp;, yeah but the attribute “Name” or “DetectedName” is coming as empty and hence the reason the capture fails

Need to know whats the syntax on getting the entity name for Lambda

---

<div class="post-metadata">

**Author:** ![yanezza](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yanezza/32/5036_2.png) [@yanezza](https://community.dynatrace.com/u/yanezza)\
**Post date:** [April 14, 2025, 4:07pm UTC](https://community.dynatrace.com/t/automatic-tagging-based-on-lambda-name/51210/4 "2025-04-14T16:07:47Z")

</div>

I don’t think exist a Placeholder for the AWS Lambda Name. Try&nbsp;{ProcessGroup:AmazonLambdaFunctionName}

---

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [April 15, 2025, 6:58am UTC](https://community.dynatrace.com/t/automatic-tagging-based-on-lambda-name/51210/5 "2025-04-15T06:58:30Z")

</div>

the involved entity does not show up in processgroup schema, so this too wont work.

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [June 23, 2025, 10:26am UTC](https://community.dynatrace.com/t/automatic-tagging-based-on-lambda-name/51210/6 "2025-06-23T10:26:44Z")

</div>

Hey&nbsp;[@vishnu\_kumar](https://community.dynatrace.com/user/66503), did you manage to find the solution to your problem? If so, it would be amazing if you’ve shared it with the rest of the Community! If not, let me know, and I’ll look for some further assistance&nbsp;😊

---

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [June 23, 2025, 1:38pm UTC](https://community.dynatrace.com/t/automatic-tagging-based-on-lambda-name/51210/7 "2025-06-23T13:38:43Z")

</div>

Hi&nbsp;[@IzabelaRokita](https://community.dynatrace.com/user/67399)&nbsp;, no actually, I went with a static Auto tagging without any placeholders and a value of ‘APP12345’ like

```auto
type(AWS_LAMBDA_FUNCTION), entityName.startsWith("APP12345")

```

Would be happy, if we get a better solution.

---

<div class="post-metadata">

**Author:** ![Maheedhar\_T](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/maheedhar_t/32/155_2.png) [@Maheedhar\_T](https://community.dynatrace.com/u/Maheedhar_T)\
**Post date:** [July 24, 2025, 11:01am UTC](https://community.dynatrace.com/t/automatic-tagging-based-on-lambda-name/51210/8 "2025-07-24T11:01:43Z")

</div>

Hi&nbsp;[@vishnu\_kumar](https://community.dynatrace.com/user/66503)&nbsp;,  
Not sure if you got the answer to this or not yet but a better way here would be to use Service name. Lambda functions would be detected in Dynatrace as RPC services.  
So we can use this one&nbsp;{Service:DetectedName} in the condition and then use regex to extract the required part from the name of the lambda and instead using Entity Selector, use the Monitored entity itself, Select Services and add the following conditions.

 ![Maheedhar_T_1-1753354860420.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/d95bc1269c4ce0024a9b4fc6f2a373e4c49de72f.png)

Hope this helps.

Regards,  
[@Maheedhar\_T](https://community.dynatrace.com/user/76275)
