Basically, once it is downloaded, you need to run the script to update the data file. After that you can use the lookup. It does expect that the field you are looking up is "http_user_agent", but if your field extractions are different than that, you can use the rename command:
Let's say your field that you want to lookup is named "user-agent":
index="weblogs" | rename user-agent AS http_user_agent | lookup uas_lookup http_user_agent
Your events should now have the additional fields.
Though this tip was useful, I found the app TA-uas_parser DEAD slow. while using with
a query like the following:
rename user-agent AS httpuseragent |
lookup uaslookup httpuseragent | stats dc(myUserApp) by osfamily
any tip on making this run faster?
Yeah, I'm afraid it can be sluggish, especially if the search returns a lot of values. You could also try out the TA-browscap plugin to see if that is any faster. Another possibility is to create a summary search that runs the lookup in the background to populate the summary index. This way you would have the user-agent string parsing done ahead of time.