Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cloudtrail: Handle floating point values.
Many of the events in a Cloudtrail scap here have floating point bytesTransferred{In,Out} values, e.g. "additionalEventData": { "SignatureVersion": "SigV4", "CipherSuite": "ECDHE-RSA-AES128-GCM-SHA256", "bytesTransferredIn": 0.0, "AuthenticationMethod": "AuthHeader", "x-amz-id-2": "Y/9E1+wcb4G90kzKPJ9K66wa+AIGssOLXHWQ7isdbcNc2OzUGBTYH4I7zjeZ3AR2zjn0oTuLZI4=", "bytesTransferredOut": 33.0 } This is arguably a bug with Cloudtrail, but here we are. Try parsing them as Uint64 first, then fall back to Float64. Signed-off-by: Gerald Combs <[email protected]>
- Loading branch information