I would make an addition to the example as it is deduping but you may end up removing a version that isn't the latest state.
`get_tenable_index` sourcetype="tenable:sc:vuln" | dedup ip, repository.id, pluginID, port, protocol sortby - lastSeen | search state=open OR state=reopened
... View more