All Apps and Add-ons

field extraction using transforms and props

gajananh999
Contributor

Dear All,

i Have same events like.

10.XX.XX.241 10.XX.1XX.201 - - [07/Jul/2014:07:52:05 -0400] "GET /XXX/qiepp/safety/argus?_adf.ctrl-state=431o46udc_4&_afrLoop=663089210549944 HTTP/1.1" 200 42450 "-" "**Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E**)"

I need to extract this this user_agent. using props.conf or by using field extraction

i used this but its not working

(?i)=.*?" "(?P<FIELDNAME>\w+/\d+\.\d+\s+\(\.\*\))(?=")

can anyone help out here?

Thanks

Gajanan Hiroji

0 Karma
1 Solution

somesoni2
Revered Legend

This works for me for the sample data

your base search | rex "(?i)=.*?\" \"(?P<FIELDNAME>.*)(?=\")"

View solution in original post

somesoni2
Revered Legend

This works for me for the sample data

your base search | rex "(?i)=.*?\" \"(?P<FIELDNAME>.*)(?=\")"
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!

Event Series: Splunk Observability Metrics Cost Optimization

Balancing Scale and Spend: Gaining Control Over High-Volume Metrics in Splunk Observability Cloud As ...

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...