# Wilcard query not working

**URL:** <https://discuss.rapid7.com/t/wilcard-query-not-working/36442>\
**Category:** Query Builder\
**Tags:** InsightVM\
**Created:** [April 25, 2024, 2:26pm UTC](https://discuss.rapid7.com/t/wilcard-query-not-working/36442 "2024-04-25T14:26:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![odpa](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/o/b5a626/32.png) [@odpa](https://discuss.rapid7.com/u/odpa)\
**Post date:** [April 25, 2024, 2:26pm UTC](https://discuss.rapid7.com/t/wilcard-query-not-working/36442/1 "2024-04-25T14:26:47Z")

</div>

I’m new to Rapid7. I’m trying to list all all exploit name using query exploits.name and using a wildcard value of \* but it’s not working. How do I do a wildcard query to show all?

---

<div class="post-metadata">

**Author:** ![talford](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@talford](https://discuss.rapid7.com/u/talford)\
**Post date:** [April 26, 2024, 9:53am UTC](https://discuss.rapid7.com/t/wilcard-query-not-working/36442/2 "2024-04-26T09:53:05Z")

</div>

Hi Opan,

Just to make sure I understand your requirement and expectations, the query builder won’t list all exploits (as far as i know) - it will only list associated assets, vulns, solutions, services and software (as seen along the top of the results table). To get a list of all the exploits you may need to use the reporting with a SQL query\export (something like SELECT \* FROM dim\_vulnerability\_exploit).

If you actually are trying to list all assets (or vulns etc) with exploits, then one way of doing this would be to use exploit.name != and then mash the keyboard to create an exploit name that doesn’t exist. That will then give a list of all assets with one or more exploits **without** that name. You still won’t see the exploits though, although exporting the CSV results will show the count of exploits per system.

I know this doesn’t exactly answer your question but it should give the same result assuming you do need ‘all’. If this doesn’t help then let me know, with a use case and i’ll see if i can help further.

---

<div class="post-metadata">

**Author:** ![odpa](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/o/b5a626/32.png) [@odpa](https://discuss.rapid7.com/u/odpa)\
**Post date:** [April 26, 2024, 1:33pm UTC](https://discuss.rapid7.com/t/wilcard-query-not-working/36442/3 "2024-04-26T13:33:40Z")

</div>

If I go to query builder and click add and enter “exploits.name !=” on the search box without anything, it will output just assets. Same thing when I mash the keyboard.

---

<div class="post-metadata">

**Author:** ![talford](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@talford](https://discuss.rapid7.com/u/talford)\
**Post date:** [April 26, 2024, 4:02pm UTC](https://discuss.rapid7.com/t/wilcard-query-not-working/36442/4 "2024-04-26T16:02:14Z")

</div>

Hi Opan,

As I said in my previous post, the query builder will not output exploits. That’s not how it works - think of it as a list of ALL your assets and any criteria you add are then used to restrict the list.

For example, if you enter software.publisher = Adobe it will show all assets that contain Adobe software. If you enter exploits.name != asdogjfiheioheog it will then show all assets that don’t have an exploit with that name (i.e. all of them).

What exactly do you want to retrieve? Is it literally just a list of all the exploits, or do you want a list of all your assets with related exploits for example or something different?

To get data out of insightVM I use the SQL Export reports rather than the query builder - the problem with that is there’s a bit of a learning curve depending on how your SQL experience is, but i’ll try to help where i can.

---

<div class="post-metadata">

**Author:** ![odpa](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/o/b5a626/32.png) [@odpa](https://discuss.rapid7.com/u/odpa)\
**Post date:** [April 26, 2024, 5:01pm UTC](https://discuss.rapid7.com/t/wilcard-query-not-working/36442/5 "2024-04-26T17:01:30Z")

</div>

Appreciate the help talford. I think I understand now. I’ll reach out in case I need more help.
