before transform
file.json
{
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36"
}
after transform
{
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36",
"ua":
{
"IsMobile": false
}
}
A note for the community
Use Cases
No response
Attempted Solutions
No response
Proposal
Integration 51Degrees Device-Detection transformer. This is a good device detection DB. Use user-agent string. Official Site: https://51degrees.com/device-detection Rust Package: https://crates.io/crates/fiftyonedegrees
Default vrl function "parse_user_agent" is good, but commersial db is better
Sample config by the new transformer
Example:
References
No response
Version
No response