Splunk Search

Extract URL field in datamodel

user2020dy
Path Finder

Hello, guys

I`m trying to extract URL field from my log in Data Model (it is not extracted from _raw log and is not seen via index). I have found some variants in similar topics and added a new field (with regular expression) to Data Model. It does not cover 100% of my events, but it works.

photo5456289228813086673.jpg

However, I still don`t see this field when run the command

| from datamodel Network_Traffic

photo5456289228813086675.jpg

2 questions:

 

1) Can anyone answer me why the field is still not seen when whiting the search

| from datamodel Network)Traffic

Because the "Preview" tab shows the results and URLs are extracted 

 

2) Maybe you know how I can extract the field URL directly from _raw event, because I`m confused with all answers which I saw about this topic before.

 

Tranks in advance

Labels (4)
0 Karma

thambisetty
SplunkTrust
SplunkTrust

can you check your regex used to extract url once ?

apply same regex using rex command to see if that is working or not.

————————————
If this helps, give a like below.

user2020dy
Path Finder

yes, the search works fine, but if I add this rex to extract a field "URL" in datamodel, the new  field doesn`t appear

user2020dy_0-1601888232391.png

 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...