Hello everyone i have a question regarding the combination of 2 fields (principal.asset.hostname & target.asset.hostname) is there any way to make the outcome show principal.asset.hostname OR target.asset.hostname instead of combine?
$index = strings.to_upper(metadata.vendor_name
$ips = strings.concat(principal.ip, intermediary.ip)
$hostnames = strings.concat(principal.asset.hostname "" target.asset.hostname) <--- HERE
$users = strings.concat(principal.user.userid , target.user.userid)
$date = timestamp.get_timestamp(metadata.event_timestamp.seconds)
match:
$index, $date, $users, $hostnames, extensions.auth.mechanism, metadata.product_event_type, security_result.summary
outcome:
$ip = array_distinct($ips)
order:
$date, $users, $hostnames asc