Im using Elastic stack 7.4 and stup auditbeat, filebeat, packetbeat ready.
Im focus on SIEM -> network, in Top DNS domains panel, i saw , default get top root domain not real domain. ( dns.question.registered_domain instead of dns.question.name)
For example, server query domain abc.xyz.com. In Top DNS domains panel will show xyz.com. It not good, When i use timeline, drag and drop xyz.com, get many result, many event is unrelated. It can be list down aaa.xyz.com, bbb.xyz.com.
How to change query in SIEM panel ?
Thank
{
"aggregations": {
"dns_count": {
"cardinality": {
"field": "dns.question.registered_domain"
}
},
"dns_name_query_count": {
"terms": {
"field": "dns.question.registered_domain",
"size": 10,
"order": {
"unique_domains": "desc"
}
},
"aggs": {
"unique_domains": {
"cardinality": {
"field": "dns.question.name"
}
},
"dns_bytes_in": {
"sum": {
"field": "source.bytes"
}
},
"dns_bytes_out": {
"sum": {
"field": "destination.bytes"
}
}
}
}
},
"query": {
"bool": {
"filter": [
{
"range": {
"@timestamp": {
"gte": 1571249363494,
"lte": 1571335763494
}
}
}
],
"must_not": [
{
"term": {
"dns.question.type": {
"value": "PTR"
}
}
}
]
}
}
}