All Apps and Add-ons

UA strings not captured in lookup

pmccomb
Explorer

I have this running but it is returning "Unknown" for these http_user_agent values:

1 "Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0)"
2 "Mozilla/5.0+(Windows+NT+6.1;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/31.0.1650.63+Safari/537.36"
3 "Mozilla/5.0+(X11;+U;+Linux+i686)+Web-Security/1.0(it's+for+a+research+study,if+you+have+questions,plz+contact+me+liangw@cs.wisc.edu)"
4 "Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9)+Gecko/2008052906+Firefox/3.0"

Do you know why?

Tags (1)
0 Karma
1 Solution

jsie_splunk
Splunk Employee
Splunk Employee

The "+" are causing the issue for TA-browscap. You could try this:

sourcetype="foo" | eval http_user_agent=urldecode(USERAGENT) | lookup browscap_lookup http_user_agent

replacing USERAGENT with the actual field name contain the above string.

View solution in original post

jsie_splunk
Splunk Employee
Splunk Employee

The "+" are causing the issue for TA-browscap. You could try this:

sourcetype="foo" | eval http_user_agent=urldecode(USERAGENT) | lookup browscap_lookup http_user_agent

replacing USERAGENT with the actual field name contain the above string.

pmccomb
Explorer

Great... that fixed it. Thank you.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...