# Java Agent application\_packages wildcard allowed?

**URL:** <https://discuss.elastic.co/t/java-agent-application-packages-wildcard-allowed/172713>\
**Category:** APM\
**Created:** [March 18, 2019, 6:54am UTC](https://discuss.elastic.co/t/java-agent-application-packages-wildcard-allowed/172713 "2019-03-18T06:54:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [March 18, 2019, 6:54am UTC](https://discuss.elastic.co/t/java-agent-application-packages-wildcard-allowed/172713/1 "2019-03-18T06:54:23Z")

</div>

Is it allowed to use:

application\_packages=asdf.\*

Thanks

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [March 18, 2019, 7:06am UTC](https://discuss.elastic.co/t/java-agent-application-packages-wildcard-allowed/172713/2 "2019-03-18T07:06:54Z")

</div>

Hi and thanks for using our agent 🙂

No need for a wildcard at the end of the package, as you did, because the checks are done through `startsWith`, so just pick the root package you want to trace, as in `application_packages=asdf`.  
This also means that wildcards are not allowed inside the package names.

---

<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:** [April 8, 2019, 3:06am UTC](https://discuss.elastic.co/t/java-agent-application-packages-wildcard-allowed/172713/3 "2019-04-08T03:06:58Z")

</div>

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