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
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...