Tracking 32 or 64 bit platform using cs-(User Agent)

Avatar
  • updated
  • Answered
Trying to get an idea of our client's commonly used platform so we can determine if we need to offer both versions of our software.
We can query the cs-(User Agent) is the IIS logs for specific values. I am using the Lite version and see that I can get browser type but not whether it is 32 or 64 bit. Is there a way to do this?
iis ie cs-user agent platform
Avatar
Michael
It seems that most useragents on 64-bit Windows include strings like Win64 or x64 that allow you to determine that they are 64-bit systems. You can find more information on it at http://stackoverflow.com/a/13709431

There are two ways to analyze useragents in the program a custom way:

1. In the Professional and Enterprise versions, it is possible to create custom reports, you can find more information on it at http://www.weblogexpert.com/help/wlex.... You can choose the "user agent" data type and specify modification rules like "Win64 = 64-bit".

2. In other editions, you can modify the Browsers.cfg and OperatingSystem.cfg files to change the way the program reports browsers and operating systems. The files are located in the Config subfolder of the WebLog Expert data folder (usually “C:\Program Files\WebLog Expert” under Windows XP/2003 or older and “C:\ProgramData\WebLog Expert” under Windows Vista/2008/7 or newer).

Please note that if you use Windows Vista/2008/7 or newer, the C:\ProgramData folder is hidden by default (unlike the Program Files folder), so you need to set Windows Explorer to show hidden files and folders. To do it, click the Organize button on the toolbar in Windows Explorer and choose the "Folder and search options" item. Open the "View" tab and select the "Show hidden files, folders, and drives" option.

You can find information on format of these files at http://www.weblogexpert.com/help/wlex...
Avatar
Warner
I see this answer from 1 year ago - would you still give the same answer today?

Now since Google Chrome v37 offers both 32-bit and 64-bit we would like to see which is more popular with our end-users.

Thanks
Avatar
Michael
Quote from Warner
I see this answer from 1 year ago - would you still give the same answer today?

Now since Google Chrome v37 offers both 32-bit and 64-bit we would like to see which is more popular with our end-users.

Thanks
If you wish to detect 32-bit and 64-bit versions of Google Chrome (not just Windows), you should also create a custom table with "user agent" data type and specify custom modification rules. According to the information from https://code.google.com/p/chromium/is... , here are sample Chrome useragents:

Chrome 32-bit on 32-bit OS: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.49 Safari/537.36


Chrome 32-bit on 64-bit OS: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

Chrome 64-bit on 64-bit OS: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2043.0 Safari/537.36


So you can create rules like the following ones:

Windows.*Win64.*Chrome ~= Chrome 64-bit on 64-bit Windows

Windows.*WOW64.*Chrome ~= Chrome 32-bit on 64-bit Windows
Windows.*Chrome ~= Chrome 32-bit on 32-bit Windows