Implement transform described in meta: https://github.com/elastic/integrations/issues/14661
Implement transform described in meta: #14661