This custom streaming search command was developed to handle JSON data sources that contain arrays of objects, which is a common problem with API data sources such as CrowdStrike and Google Workspace.
The command adds additional fields using the value from the provided key, and either a specific child or all children other than the key.