mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-24 18:03:10 +01:00
Initial support for Live Queries in Hunt
This commit is contained in:
16
salt/elasticsearch/files/ingest/osquery.live_query
Normal file
16
salt/elasticsearch/files/ingest/osquery.live_query
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"description" : "osquery live query",
|
||||
"processors" : [
|
||||
{
|
||||
"script": {
|
||||
"lang": "painless",
|
||||
"source": "def dict = ['columns': new HashMap()]; for (entry in ctx['rows'].entrySet()) { dict['columns'][entry.getKey()] = entry.getValue(); } ctx['result'] = dict; "
|
||||
}
|
||||
},
|
||||
{ "remove": { "field": [ "rows" ], "ignore_missing": true, "ignore_failure": true } },
|
||||
{ "rename": { "field": "distributed_query_execution_id", "target_field": "result.query_id", "ignore_missing": true } },
|
||||
{ "rename": { "field": "computer_name", "target_field": "host.hostname", "ignore_missing": true } },
|
||||
{ "pipeline": { "name": "osquery.normalize" } },
|
||||
{ "pipeline": { "name": "common" } }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user