Problem statement
This article explains why the user-agent differs in the log entry sent to the log stream compared to that shown for the same entry in Auth0.
Here is an example of the User-agent in Auth0 logs in the dashboard:
Opera Mobile 78.6.4143 / Android 0.0.0
Here is the user agent streamed for the same log:
Mozilla/5.0 (Linux; Android 11; Mi 9T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.154 Mobile Safari/537.36 OPR/78.6.4143.76259
Solution
The Management API (which the dashboard uses) parses the original user-agent value and re-assembles it before returning the result.
The discrepancy exists because the user agent sent to the log stream is not parsed and represents the actual user agent Auth0 receives. In contrast, the one shown in the dashboard has been parsed and may differ.
There is currently no way to turn off this behavior.