forked from elastic/integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zscaler_zia.firewall: Fix source/destination ip mapping (elastic#11613)
[zscaler_zia] Fix source/destination ip mapping in `firewall` logs. Currently the ECS `source.ip` and `destination.ip` are copied not only from ZScaler client's source and destination ips, but also from the proxy server's source and destination ips. From security detection point of view, the flow is clearly defined if `source.ip` and `destination.ip` are mapped only from client's perspective instead of mixing them with proxy's source and destination ips. Also, the current array representation of `source.ip` and `destination.ip` makes it unable to be used with `geoip` processor. This PR: - Removes the mapping from proxy server's source and destination to ECS `source.ip` and `destination.ip` respectively. - Adds `source.nat.ip` from zscaler's `tsip` field. - Adds `geoip` processor to `source.ip` and `destination.ip`. - Updates `related.ip` to reflect from custom fields of proxy's source and destination ips.
- Loading branch information
Showing
8 changed files
with
156 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.