Hello @richcollier! It is a pleasure for me to meet you again! You helped me in some previous posts and thank you a lot. You are a guru in ELK ML
To respond to your questions, for the command GET _ml/datafeeds/datafeed-dns_exfiltration
, I get:
{
"count" : 1,
"datafeeds" : [
{
"datafeed_id" : "datafeed-dns_exfiltration",
"job_id" : "dns_exfiltration",
"query_delay" : "65004ms",
"indices" : [
"packetbeat-*"
],
"query" : {
"bool" : {
"should" : [
{
"match_phrase" : {
"type" : "dns"
}
}
],
"minimum_should_match" : 1,
"filter" : [
{
"match_phrase" : {
"type" : "dns"
}
}
],
"must_not" : [ ]
}
},
"script_fields" : {
"hrd" : {
"script" : {
"source" : "return domainSplit(doc['dns.question.name'].value).get(1);",
"lang" : "painless"
},
"ignore_failure" : false
},
"sub" : {
"script" : {
"source" : "return domainSplit(doc['dns.question.name'].value).get(0);",
"lang" : "painless"
},
"ignore_failure" : false
}
},
"scroll_size" : 1000,
"chunking_config" : {
"mode" : "auto"
},
"delayed_data_check_config" : {
"enabled" : true
}
}
]
}
As regards this command, GET packetbeat-*/_search
, I obtain:
{
"took" : 17,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1128,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "packetbeat-7.6.2",
"_type" : "_doc",
"_id" : "mHtwxXcBN1tfp17DWxnv",
"_score" : 1.0,
"_source" : {
"@timestamp" : "2021-02-21T16:33:30.001Z",
"network" : {
"bytes" : 1099865,
"packets" : 4023,
"type" : "ipv4",
"transport" : "tcp",
"community_id" : "1:YqII7mbgOpdT5mf3MMJdPvr+dhk="
},
"host" : {
"name" : "ubuntu",
"hostname" : "ubuntu",
"architecture" : "x86_64",
"os" : {
"codename" : "bionic",
"platform" : "ubuntu",
"version" : "18.04.1 LTS (Bionic Beaver)",
"family" : "debian",
"name" : "Ubuntu",
"kernel" : "4.15.0-29-generic"
},
"id" : "8f68089f99fc4e6db58b1d98c7ee3d64",
"containerized" : false
},
"ecs" : {
"version" : "1.4.0"
},
"type" : "flow",
"source" : {
"bytes" : 786344,
"ip" : "127.0.0.1",
"port" : 58526,
"packets" : 2408
},
"destination" : {
"packets" : 1615,
"ip" : "127.0.0.1",
"port" : 9200,
"bytes" : 313521
},
"event" : {
"end" : "2021-02-21T16:33:29.752Z",
"duration" : 2627491892158,
"dataset" : "flow",
"kind" : "event",
"category" : "network_traffic",
"action" : "network_flow",
"start" : "2021-02-21T15:49:42.261Z"
},
"agent" : {
"type" : "packetbeat",
"ephemeral_id" : "00bfd7ae-a87e-4c49-9a33-0e46bea2b072",
"hostname" : "ubuntu",
"id" : "b306d0ba-7d77-4c5b-a009-a2bcb70c4922",
"version" : "7.6.2"
},
"flow" : {
"id" : "EAT/////AP//////CP8AAAF/AAABfwAAAZ7k8CM",
"final" : false
}
}
},
....... and so on
}
}