# Can I search for Entities there are not any tags?

**URL:** <https://community.dynatrace.com/t/can-i-search-for-entities-there-are-not-any-tags/20818>\
**Category:** Open Q&A\
**Tags:** tagging\
**Created:** [May 28, 2019, 7:13am UTC](https://community.dynatrace.com/t/can-i-search-for-entities-there-are-not-any-tags/20818 "2019-05-28T07:13:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfukuda](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@tfukuda](https://community.dynatrace.com/u/tfukuda)\
**Post date:** [May 28, 2019, 7:13am UTC](https://community.dynatrace.com/t/can-i-search-for-entities-there-are-not-any-tags/20818/1 "2019-05-28T07:13:20Z")

</div>

Hi all,

I have a question about tag.

Can I search for Entities there are not any tags?

In large environments, it takes time to check each Entities to see if it is tagged.

Is there any way to search?

Best regards,

Tomoko Fukuda

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [May 28, 2019, 9:26am UTC](https://community.dynatrace.com/t/can-i-search-for-entities-there-are-not-any-tags/20818/2 "2019-05-28T09:26:38Z")

</div>

Hmmm i think this may be hard to do.

Only Idea I have is Environment API, there you can list all entities and check via script which of them has tags or not. You can make it via simple regex in sublime as well.

Sebastian

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [May 28, 2019, 10:14am UTC](https://community.dynatrace.com/t/can-i-search-for-entities-there-are-not-any-tags/20818/3 "2019-05-28T10:14:22Z")

</div>

No you cannot. The only way is to use the environment API. For example to query services with no tags:

```auto
curl -XGET -H "Authorization: api-token $APITOKEN" "$TENANT/api/v1/entity/services"|jq '.[]|select(.tags=[])'

```

---

<div class="post-metadata">

**Author:** ![kulwinder\_singh](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@kulwinder\_singh](https://community.dynatrace.com/u/kulwinder_singh)\
**Post date:** [May 28, 2019, 11:14am UTC](https://community.dynatrace.com/t/can-i-search-for-entities-there-are-not-any-tags/20818/4 "2019-05-28T11:14:49Z")

</div>

It can be done. Ideally i would do is pull the monitors data in a file using API and script and then in same script will parse the file for the required data without tags.

---

<div class="post-metadata">

**Author:** ![kulwinder\_singh](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@kulwinder\_singh](https://community.dynatrace.com/u/kulwinder_singh)\
**Post date:** [May 28, 2019, 11:15am UTC](https://community.dynatrace.com/t/can-i-search-for-entities-there-are-not-any-tags/20818/5 "2019-05-28T11:15:57Z")

</div>

If you can do it fine otherwise let me know i will write something down for you.
