All Apps and Add-ons

how to use the TA-uas_parser

cdm33
Explorer

i've installed it but how do you use it ?

Tags (1)

dshpritz
SplunkTrust
SplunkTrust

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.

Thanks,

Dave

dshpritz
SplunkTrust
SplunkTrust

Hey splunkears,

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.

Thanks,

Dave

0 Karma

splunkears
Path Finder

Though this tip was useful, I found the app TA-uas_parser DEAD slow. while using with
a query like the following:

index="weblogs" |
rename user-agent AS http_user_agent |
lookup uas_lookup http_user_agent | stats dc(myUserApp) by os_family

any tip on making this run faster?

0 Karma

cdm33
Explorer

there is info on the page - but no instructions on how to actually use it !!

0 Karma

Ayn
Legend

There's info available on the app page: http://splunk-base.splunk.com/apps/48017/ta-uas_parser (also look at the review which has an example on how to use the lookup...)

Ayn
Legend

It's a lookup, so you call it like you would with other lookups. As the example in the review shows, it expects the input field to be called "http_user_agent".

0 Karma

cdm33
Explorer

there's info on the page but no instructions on how to use it !!!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...