# \#queries

**URL:** https://discuss.rapid7.com/tag/queries/370.md

[Latest](https://discuss.rapid7.com/latest.md) · [Categories](https://discuss.rapid7.com/categories.md) · [Tags](https://discuss.rapid7.com/tags.md)

---

## [FEATURE REQUST: Explorer / Query Builder - Remediated (mitigated) Vulnerabilities](https://discuss.rapid7.com/t/feature-requst-explorer-query-builder-remediated-mitigated-vulnerabilities/43170)

<div class="topic-metadata">

**Author:** [@Lee](https://discuss.rapid7.com/u/Lee)\
**Replies:** 3\
**Last updated:** [August 27, 2026, 4:17pm UTC](https://discuss.rapid7.com/t/feature-requst-explorer-query-builder-remediated-mitigated-vulnerabilities/43170 "2026-08-27T16:17:13Z")

</div>

Provide customers with a way to query what vulnerabilities have been remediated for a given date range AND/OR by the vulnerability remediated date. For example: vulnerable.remediated = true / false , vulnerability.remedi…

---

## [AWS Inspector Findings Sync to Jira Tickets - ICON Workflow](https://discuss.rapid7.com/t/aws-inspector-findings-sync-to-jira-tickets-icon-workflow/57408)

<div class="topic-metadata">

**Author:** [@zack\_jones](https://discuss.rapid7.com/u/zack_jones)\
**Replies:** 2\
**Last updated:** [August 27, 2026, 3:32pm UTC](https://discuss.rapid7.com/t/aws-inspector-findings-sync-to-jira-tickets-icon-workflow/57408 "2026-08-27T15:32:41Z")

</div>

I figured that someone may need this. This snippet is a workflow that lives off of a specific Surface Command query that gets all AWS Inspector issues, aligns them to their hosts, and syncs tickets in Jira. It will autom…

---

## [R7 Surface Command correlation log table](https://discuss.rapid7.com/t/r7-surface-command-correlation-log-table/55546)

<div class="topic-metadata">

**Author:** [@amiah](https://discuss.rapid7.com/u/amiah)\
**Replies:** 0\
**Last updated:** [October 14, 2025, 8:27am UTC](https://discuss.rapid7.com/t/r7-surface-command-correlation-log-table/55546 "2025-10-14T08:27:38Z")

</div>

Im looking for a way (or a table) to return the linkage between the Assets Fields and how they map to source datasets. i need to be able to quickly trace where and how the fields for a certain asset has been derived for…

---

## [Structuring Vulnerability Management in Higher Ed with InsightVM/Nexpose – Seeking Community Input](https://discuss.rapid7.com/t/structuring-vulnerability-management-in-higher-ed-with-insightvm-nexpose-seeking-community-input/54391)

<div class="topic-metadata">

**Author:** [@cfranklin](https://discuss.rapid7.com/u/cfranklin)\
**Replies:** 2\
**Last updated:** [August 29, 2025, 2:05pm UTC](https://discuss.rapid7.com/t/structuring-vulnerability-management-in-higher-ed-with-insightvm-nexpose-seeking-community-input/54391 "2025-08-29T14:05:40Z")

</div>

Hi everyone, I’m reaching out to the higher education community to learn how others are structuring their vulnerability management programs around InsightVM and Nexpose. As part of an enterprise IT security team in a de…

---

## [SLA Compliance](https://discuss.rapid7.com/t/sla-compliance/52027)

<div class="topic-metadata">

**Author:** [@hlieurance](https://discuss.rapid7.com/u/hlieurance)\
**Replies:** 0\
**Last updated:** [June 10, 2025, 8:03pm UTC](https://discuss.rapid7.com/t/sla-compliance/52027 "2025-06-10T20:03:15Z")

</div>

Since the Goals and SLAs are based on the date the SLA is created and not based on the Discovery Date of the vulnerability. I am looking for a query to run to get SLA compliance trend month by month. Can anyone steer me …

---

## [CONFIRMED BUG: Query Builder asset.lastScanTime - No Records](https://discuss.rapid7.com/t/confirmed-bug-query-builder-asset-lastscantime-no-records/51308)

<div class="topic-metadata">

**Author:** [@Lee](https://discuss.rapid7.com/u/Lee)\
**Replies:** 0\
**Last updated:** [May 19, 2025, 8:30pm UTC](https://discuss.rapid7.com/t/confirmed-bug-query-builder-asset-lastscantime-no-records/51308 "2025-05-19T20:30:05Z")

</div>

I just confirmed with a R7 support that there is a known bug when using the query ‘asset.lastScanTime’ BETWEEN dates in Query Builder; where it returns no records even though you have successfully completed scan-engine s…

---

## [Edit command policy rule](https://discuss.rapid7.com/t/edit-command-policy-rule/51303)

<div class="topic-metadata">

**Author:** [@Adrian](https://discuss.rapid7.com/u/Adrian)\
**Replies:** 0\
**Last updated:** [May 19, 2025, 6:21pm UTC](https://discuss.rapid7.com/t/edit-command-policy-rule/51303 "2025-05-19T18:21:40Z")

</div>

Hello, For CIS policy "CIS Red Hat Enterprise Linux 7 Benchmark Level 1 - Server v4.0.0, policy rule “6.2.3. Ensure all groups in /etc/passwd exist in /etc/group” if I want to edit it the command is passing=“”;output=…

---

## [Generate Report with CVE ID](https://discuss.rapid7.com/t/generate-report-with-cve-id/31537)

<div class="topic-metadata">

**Author:** [@bbh537tp](https://discuss.rapid7.com/u/bbh537tp)\
**Replies:** 1\
**Last updated:** [April 8, 2025, 6:11pm UTC](https://discuss.rapid7.com/t/generate-report-with-cve-id/31537 "2025-04-08T18:11:07Z")

</div>

I am simply attempting to create a report that pulls the CVE-ID. Currently, I can only pull CVE-ID that includes other information in the same column, e.g. Microsoft CVE-2023-36884 or Microsoft CVE-2023-36884 Windows Sea…

---

## [SQL Query: Site Names and Tags](https://discuss.rapid7.com/t/sql-query-site-names-and-tags/38381)

<div class="topic-metadata">

**Author:** [@rmcelduff](https://discuss.rapid7.com/u/rmcelduff)\
**Replies:** 1\
**Last updated:** [April 8, 2025, 5:42pm UTC](https://discuss.rapid7.com/t/sql-query-site-names-and-tags/38381 "2025-04-08T17:42:40Z")

</div>

Hi all, I am hoping someone may be able to help with this query! I am trying to pull out the data which gives me my individual sites and the “Location” and “Custom” tags that are applied to that site, I am hoping someo…

---

## [Email IDs Alerts](https://discuss.rapid7.com/t/email-ids-alerts/45017)

<div class="topic-metadata">

**Author:** [@rwaghmare](https://discuss.rapid7.com/u/rwaghmare)\
**Replies:** 7\
**Last updated:** [March 25, 2025, 9:54pm UTC](https://discuss.rapid7.com/t/email-ids-alerts/45017 "2025-03-25T21:54:14Z")

</div>

Hi, How can we configure Rapid7 to ensure that all alerts related to specific critical users are assigned ‘Critical’ severity, prioritized, and trigger email notifications?

---

## [Insight Agents Enumerate Software and Ports, NOT Services - No Port Info In Analytics! :-(](https://discuss.rapid7.com/t/insight-agents-enumerate-software-and-ports-not-services-no-port-info-in-analytics/49206)

<div class="topic-metadata">

**Author:** [@Lee](https://discuss.rapid7.com/u/Lee)\
**Replies:** 0\
**Last updated:** [March 17, 2025, 3:52pm UTC](https://discuss.rapid7.com/t/insight-agents-enumerate-software-and-ports-not-services-no-port-info-in-analytics/49206 "2025-03-17T15:52:36Z")

</div>

Insight Agents Enumerate Software and Ports, NOT Services! :frowning: I’m left scratching my head why the Insight agents can collect installed software and ports/processes information, but do not collect services. Howe…

---

## [Historical report of Vulnerability Counts](https://discuss.rapid7.com/t/historical-report-of-vulnerability-counts/46605)

<div class="topic-metadata">

**Author:** [@zsmiley](https://discuss.rapid7.com/u/zsmiley)\
**Replies:** 1\
**Last updated:** [February 14, 2025, 6:37pm UTC](https://discuss.rapid7.com/t/historical-report-of-vulnerability-counts/46605 "2025-02-14T18:37:16Z")

</div>

I need to create a report to meet regulatory requirements that can provide the following information: • Time period: 12 month period in the past. • Vulnerability Counts, broken down by CVSS v3 Low, Med, High, Critical s…

---

## [Find devices with local admin account](https://discuss.rapid7.com/t/find-devices-with-local-admin-account/40598)

<div class="topic-metadata">

**Author:** [@mhernandez](https://discuss.rapid7.com/u/mhernandez)\
**Replies:** 2\
**Last updated:** [February 4, 2025, 8:05pm UTC](https://discuss.rapid7.com/t/find-devices-with-local-admin-account/40598 "2025-02-04T20:05:38Z")

</div>

I am trying to figure out if there is a way to find all devices that have a local admin account with a specific name. We are using InsightIDR, and InsightVM. I’ve been reading over the documentation, searching the log en…

---

## [SQL query port information](https://discuss.rapid7.com/t/sql-query-port-information/46491)

<div class="topic-metadata">

**Author:** [@julian](https://discuss.rapid7.com/u/julian)\
**Replies:** 3\
**Last updated:** [January 10, 2025, 1:57pm UTC](https://discuss.rapid7.com/t/sql-query-port-information/46491 "2025-01-10T13:57:55Z")

</div>

Hi there! I’m trying to retrieve all assets that are running tcp 1433 & 1434 (MS SQL). I’m having trouble to create a SQL query for this request. Is there someone who can help me with this? Kind regards, Julian

---

## [API Chrome Plugin for all platform tools - useful?](https://discuss.rapid7.com/t/api-chrome-plugin-for-all-platform-tools-useful/46692)

<div class="topic-metadata">

**Author:** [@zack\_jones](https://discuss.rapid7.com/u/zack_jones)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 12:52pm UTC](https://discuss.rapid7.com/t/api-chrome-plugin-for-all-platform-tools-useful/46692 "2025-01-10T12:52:07Z")

</div>

Hi everyone, I’ve been messing with the API for various Insight Platform tools lately and decided to toy around with the idea of a Chrome plugin. By making this a plugin, the user wouldn’t have to worry with API keys or…

---

## [Policy - Rule Detail Compliance](https://discuss.rapid7.com/t/policy-rule-detail-compliance/43457)

<div class="topic-metadata">

**Author:** [@cyber\_security](https://discuss.rapid7.com/u/cyber_security)\
**Replies:** 1\
**Last updated:** [December 31, 2024, 9:40pm UTC](https://discuss.rapid7.com/t/policy-rule-detail-compliance/43457 "2024-12-31T21:40:21Z")

</div>

Hello, I want to create a report that includes the following elements: host\_name,ip\_address,OS Name, policy\_title,rule\_name,compliance\_status,last\_scan Example of field values |host\_name|ip\_address|OS Name|policy\_tit…

---

## [How to querying for 'Unique Identifiers'](https://discuss.rapid7.com/t/how-to-querying-for-unique-identifiers/43574)

<div class="topic-metadata">

**Author:** [@amokrzycki](https://discuss.rapid7.com/u/amokrzycki)\
**Replies:** 0\
**Last updated:** [October 13, 2024, 6:34pm UTC](https://discuss.rapid7.com/t/how-to-querying-for-unique-identifiers/43574 "2024-10-13T18:34:47Z")

</div>

Hello all, have a lot of important information for me in the section “Unique Identifiers” in asset details. How do I filter assets using that data?

---

## [FEATURE REQUST: Ability to Query Vulnerability Proof](https://discuss.rapid7.com/t/feature-requst-ability-to-query-vulnerability-proof/42585)

<div class="topic-metadata">

**Author:** [@Lee](https://discuss.rapid7.com/u/Lee)\
**Replies:** 2\
**Last updated:** [October 2, 2024, 8:28pm UTC](https://discuss.rapid7.com/t/feature-requst-ability-to-query-vulnerability-proof/42585 "2024-10-02T20:28:59Z")

</div>

It would be incredibly helpful to have the ability in Query Builder/Explorer to query values contained in the ‘vulnerability proof’ column/table that is available when review a vulnerable on a specific asset. For exampl…

---

## [FEATURE REQUEST: Insight Agent Support for Query 'asset.credentialSuccessStatus'](https://discuss.rapid7.com/t/feature-request-insight-agent-support-for-query-asset-credentialsuccessstatus/42584)

<div class="topic-metadata">

**Author:** [@Lee](https://discuss.rapid7.com/u/Lee)\
**Replies:** 0\
**Last updated:** [September 18, 2024, 1:34pm UTC](https://discuss.rapid7.com/t/feature-request-insight-agent-support-for-query-asset-credentialsuccessstatus/42584 "2024-09-18T13:34:54Z")

</div>

When building custom reports and queries to validate credentialed/authenticated scanning, it would be incredibly helpful if Insight agents also supported the query ‘asset.credentialSuccessStatus’. Currently this query on…

---

## [SQL Query to show specific scan results](https://discuss.rapid7.com/t/sql-query-to-show-specific-scan-results/41724)

<div class="topic-metadata">

**Author:** [@guy\_incognito](https://discuss.rapid7.com/u/guy_incognito)\
**Replies:** 0\
**Last updated:** [August 28, 2024, 6:44pm UTC](https://discuss.rapid7.com/t/sql-query-to-show-specific-scan-results/41724 "2024-08-28T18:44:52Z")

</div>

Hi, I am looking for a very basic query to run against the data warehouse to list the contents of a specific scan\_id. We have the default “Rapid 7 Insights Agents” site with its default site\_id. Everyday we have various…

---

## [SQL query - Include first discovery date and last discovery date with Asset inventory](https://discuss.rapid7.com/t/sql-query-include-first-discovery-date-and-last-discovery-date-with-asset-inventory/39705)

<div class="topic-metadata">

**Author:** [@llrfarley](https://discuss.rapid7.com/u/llrfarley)\
**Replies:** 1\
**Last updated:** [July 30, 2024, 6:34pm UTC](https://discuss.rapid7.com/t/sql-query-include-first-discovery-date-and-last-discovery-date-with-asset-inventory/39705 "2024-07-30T18:34:55Z")

</div>

I am a SQL novice, and I’m trying to build a query that includes the first\_discovered and last\_discovered data from the fact\_asset\_discovery table into this script, could someone please explain to me how to do this becau…

---

## [Request for specific assets from old report scan](https://discuss.rapid7.com/t/request-for-specific-assets-from-old-report-scan/36184)

<div class="topic-metadata">

**Author:** [@jfrye](https://discuss.rapid7.com/u/jfrye)\
**Replies:** 1\
**Last updated:** [April 23, 2024, 11:40am UTC](https://discuss.rapid7.com/t/request-for-specific-assets-from-old-report-scan/36184 "2024-04-23T11:40:52Z")

</div>

Hello, the below sql query is the closest I can find for our use case. Basically I would like to pull out a couple assets for a client to see their results without showing other clients. The issue is from the scope from …

---

## [How to do a loop of values inside an array without brackets and double quotes](https://discuss.rapid7.com/t/how-to-do-a-loop-of-values-inside-an-array-without-brackets-and-double-quotes/34853)

<div class="topic-metadata">

**Author:** [@baksoy](https://discuss.rapid7.com/u/baksoy)\
**Replies:** 7\
**Last updated:** [March 28, 2024, 8:30am UTC](https://discuss.rapid7.com/t/how-to-do-a-loop-of-values-inside-an-array-without-brackets-and-double-quotes/34853 "2024-03-28T08:30:12Z")

</div>

Hi, I have a workflow that scans (md5) hashes on virustotal using the virustotal API. So I made a loop and configured it so it would loop through a pre filtered list of hashes that I have extracted using regex from a st…

---

## [Asset original risk score vs context-driven risk score](https://discuss.rapid7.com/t/asset-original-risk-score-vs-context-driven-risk-score/35111)

<div class="topic-metadata">

**Author:** [@vfesik](https://discuss.rapid7.com/u/vfesik)\
**Replies:** 1\
**Last updated:** [March 27, 2024, 8:55am UTC](https://discuss.rapid7.com/t/asset-original-risk-score-vs-context-driven-risk-score/35111 "2024-03-27T08:55:04Z")

</div>

Dear community, I faced with issue where I can’t see the context-driven score in sql query reports. If I sort assets by fa.riskscore I see only Original score. But I have a critical tags with Risk Score Adjustment to h…

---

## [Dashboard\\Query Events per log](https://discuss.rapid7.com/t/dashboard-query-events-per-log/31425)

<div class="topic-metadata">

**Author:** [@talford](https://discuss.rapid7.com/u/talford)\
**Replies:** 3\
**Last updated:** [January 5, 2024, 4:59pm UTC](https://discuss.rapid7.com/t/dashboard-query-events-per-log/31425 "2024-01-05T16:59:15Z")

</div>

Hi, Is it possible to create some kind of query and dashboard to return the events per time period per event source, including those that returned nothing? As an example, if we had 10 domain controllers I would like to…

---

## [Create SQL Query that lists Severity alongside CVEs, Hosts](https://discuss.rapid7.com/t/create-sql-query-that-lists-severity-alongside-cves-hosts/30096)

<div class="topic-metadata">

**Author:** [@czappe](https://discuss.rapid7.com/u/czappe)\
**Replies:** 1\
**Last updated:** [November 22, 2023, 6:38pm UTC](https://discuss.rapid7.com/t/create-sql-query-that-lists-severity-alongside-cves-hosts/30096 "2023-11-22T18:38:08Z")

</div>

I’m trying to build a basic SQL query to manually import vulnerabilities into Automox based on the example they provide here: Rapid7 - Vulnerability Report Export I’m hitting a snag when I attempt to add the CVE severit…

---

## [Query builder to find assets with no AV and/or a list of all AV software](https://discuss.rapid7.com/t/query-builder-to-find-assets-with-no-av-and-or-a-list-of-all-av-software/29423)

<div class="topic-metadata">

**Author:** [@sweires](https://discuss.rapid7.com/u/sweires)\
**Replies:** 1\
**Last updated:** [November 7, 2023, 9:14pm UTC](https://discuss.rapid7.com/t/query-builder-to-find-assets-with-no-av-and-or-a-list-of-all-av-software/29423 "2023-11-07T21:14:39Z")

</div>

Total noob to R7. I’m trying to build a query in query builder to pull up software of type AV. I was asked to produce a list of systems with no Anti virus. Outdated anti virus, and a list of all deployed anti virus types…

---

## [Identify Obsolete or end of life Operating Systems](https://discuss.rapid7.com/t/identify-obsolete-or-end-of-life-operating-systems/26907)

<div class="topic-metadata">

**Author:** [@jsilva2](https://discuss.rapid7.com/u/jsilva2)\
**Replies:** 7\
**Last updated:** [September 1, 2023, 9:34am UTC](https://discuss.rapid7.com/t/identify-obsolete-or-end-of-life-operating-systems/26907 "2023-09-01T09:34:10Z")

</div>

Would like to figure out how I can build a query to find end of life operating systems.

---

## [Query Builder Gotchas!](https://discuss.rapid7.com/t/query-builder-gotchas/24185)

<div class="topic-metadata">

**Author:** [@Lee](https://discuss.rapid7.com/u/Lee)\
**Replies:** 0\
**Last updated:** [June 15, 2023, 3:16pm UTC](https://discuss.rapid7.com/t/query-builder-gotchas/24185 "2023-06-15T15:16:52Z")

</div>

It turns out the ordering of your advanced queries make a difference. The first query provides correct results, but the second does not. So please check your queries since ordering of your nested OR’s are critical. (ass…

---

## [Identify Assets that are only in a Discovery Site](https://discuss.rapid7.com/t/identify-assets-that-are-only-in-a-discovery-site/17089)

<div class="topic-metadata">

**Author:** [@brandon\_mcclure](https://discuss.rapid7.com/u/brandon_mcclure)\
**Replies:** 3\
**Last updated:** [April 27, 2023, 9:27pm UTC](https://discuss.rapid7.com/t/identify-assets-that-are-only-in-a-discovery-site/17089 "2023-04-27T21:27:50Z")

</div>

I’m trying to Identify Assets that are only in a Discovery Site and not Global or a Vulnerability Site. I started with asset.sites NOT IN for my query, but the returned data is not including the rest of the Asset inform…

[Next page](https://discuss.rapid7.com/tag/queries/370.md?match_all_tags=true&page=1&tags%5B%5D=queries)
