elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.61k stars 24.64k forks source link

User Agent processor should provide specific device names #41994

Open hmdhk opened 5 years ago

hmdhk commented 5 years ago

Describe the feature: Currently, the user_agent processor shows Generic Smartphone for user agent strings that contain more specific device names.

As an example, consider the following user agent string: Mozilla/5.0 (Linux; Android 7.1.1; SM-C900F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36

which once processed would produce:

{
      "original" : "Mozilla/5.0 (Linux; Android 7.1.1; SM-C900F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36",
      "os" : {
        "name" : "Android",
        "version" : "7.1.1",
        "full" : "Android 7.1.1"
      },
      "name" : "Chrome Mobile",
      "device" : {
        "name" : "Generic Smartphone"
      },
      "version" : "73.0.3683.90"
    }
  }

However, there's a more specific device name in the user agent, i.e. SM-C900F, which can be shown as Samsung SM-C900F.

elasticmachine commented 5 years ago

Pinging @elastic/es-core-features

Marcos-Zota commented 3 years ago

bump

Is anyone currently working on this? Would be nice to have access to more accurate data on elastic :)