====== HTTP User-Agent based analytics using the UA-Parser project ====== User-Agent strings are notorious for minor variations that make it hard to use them to categorize browsers, devices, and OS. The UA-Parser Core project maintains a giant Regex file that you can use to extract these elements. The LUA Script found on the [[https://github.com/trisulnsm/trisul-scripts/tree/master/lua/backend_scripts/ua-parser|scripts page]] demonstrates the following techniques. * How to work with YAML files * How to use the T.re2 support by Trisul to load a dictionary of RE2 compatible Regexes ==== Links ==== * [[https://github.com/trisulnsm/trisul-scripts/tree/master/lua/backend_scripts/ua-parser|UA-Parser Trisul script]] * The [[https://github.com/ua-parser/uap-core|UA-Parser]] project which maintains a library of UA Parsing regexes