I am modifying a login system and have been tasked to log all authentication requests for security purposes.
One of my plans is to record the user agent strings of incoming requests and translate them into readable displays, such as Request from: (Chrome/Windows)
or Request from: (Firefox/Mac)
whenever the user asks for this information. What length should my varchar field be in MySQL?
Is it necessary to have the entire user agent string to accurately determine the client's browser and operating system information in the future, or is there a specification for user agents that enables me to extract only a portion of it and discard the rest as unnecessary information?