Splunk Search

Permanent Field extraction

Karthikeya
Communicator

Trying to get permanent field extraction for a field. Tried to use field extraction tabs in fields given regex there but getting failed. Giving the same in search working. I don't know why.

Below is the event:

host: juniper-uat.systems.fed

Connection: keep-alive sec-ch-ua-platform: ""Windows""

X-Requested-With: XMLHttpRequest

Need to extract the host value as 'fqdn' permanently.

given this regex - Host:\s(?<fqdn>(.+))\n in field extraction as attached below:

Karthikeya_0-1738685468488.png

But it is extracting whole event value starting from fqdn value. Not extracting correctly.

Please help me in this regard.

Labels (3)
0 Karma

luizlimapg
Path Finder

Hi @Karthikeya 

It could be access permission to the extracted field. Go to the menu Settings > Fields, click on Field Extractions, and check if the permission for your field is correct. To ensure access for all users, set the app permissions to global and the Role permissions to Read for Everyone.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Karthikeya ,

I could be more detailed, if you can share the full event, anyway, you have to create a regex like the following:

 

| rex "host: (?<host>[^\s\n]+)"

 

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...
OSZAR »