I am customizing a login system and for security reasons have been asked to log all authentication requests.
One thing I plan to do is recording the incoming user agent strings and translating them when requested into displays such as Request from: (Chrome/Windows) or Request from: (Firefox/Mac)
What length should my varchar field be in MySQL?
Do I need the entire useragent string to accurately determine the client's browser/os information in the future? Or is there some specification for useragents that allows me to extract only a substring from it and discard the rest of the "useless information".