v1.1: Add CIDR subnet filtering and Agent filter in Devices page
This commit is contained in:
commit
966058e2fe
422 files changed
+54656
No files matched your search
@@ -0,0 +1,10 @@
|
||||
const mongoose = require('mongoose');
|
||||
async function check() {
|
||||
await mongoose.connect('mongodb://backone_inspect:backone_inspect@mongodb.prod.proit.id:27017/backone_inspect_0');
|
||||
const t = await mongoose.connection.collection('threats').countDocuments({});
|
||||
console.log('Threats count:', t);
|
||||
const events = await mongoose.connection.collection('events').countDocuments({});
|
||||
console.log('Events count:', events);
|
||||
process.exit(0);
|
||||
}
|
||||
check();
|
||||
Reference in new issue
Block a user