All Apps and Add-ons

TA-user-agents: Why are some user agents showing as unknown, and how do we add these into the lookup definitions?

robertgoolsby
Engager

It looks like there are a handful of user agents that show up as unknown:

Mozilla/5.0+(iPhone;+CPU+iPhone+OS+7_1_1+like+Mac+OS+X)+AppleWebKit/537.51.2+(KHTML,+like+Gecko)+Mobile/11D201
Mozilla/5.0+(iPad;+CPU+OS+8_4_1+like+Mac+OS+X)+AppleWebKit/600.1.4+(KHTML,+like+Gecko)+Mobile/12H321
Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+4.0.30319.34209
Mozilla/5.0+(iPhone;+CPU+iPhone+OS+8_3+like+Mac+OS+X)+AppleWebKit/600.1.4+(KHTML,+like+Gecko)+Mobile/12F70

How do we get these added into the lookup definitions? Manually though the .yaml?

0 Karma
1 Solution

dshpritz
SplunkTrust
SplunkTrust

One thing you may want to try doing is removing the "+" symbols from the user-agent string (some of the regexes in the YAML do use spaces). Something like:

eval http_user_agent = replace(http_user_agent,"+"," ")

If that doesn't work, then you may need to edit the regexes. This can be done by editing the regexes.yaml, but be aware that those changes may be overwritten on an upgrade.

HTH,

Dave

View solution in original post

dshpritz
SplunkTrust
SplunkTrust

One thing you may want to try doing is removing the "+" symbols from the user-agent string (some of the regexes in the YAML do use spaces). Something like:

eval http_user_agent = replace(http_user_agent,"+"," ")

If that doesn't work, then you may need to edit the regexes. This can be done by editing the regexes.yaml, but be aware that those changes may be overwritten on an upgrade.

HTH,

Dave

robertgoolsby
Engager

Close - needed the slash:

eval http_user_agent = replace(http_user_agent,"\+"," ")
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...