cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I search for Entities there are not any tags?

tfukuda
Contributor

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

 

4 REPLIES 4

skrystosik
DynaMight Guru
DynaMight Guru

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


Regards, Sebastian

Julius_Loman
DynaMight Legend
DynaMight Legend

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

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



Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

kulwinder_singh
Inactive

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.


kulwinder_singh
Inactive

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


Featured Posts