Splunk Search

Extracting fields using regex

kailun92
Communicator

When i try to extract a field using this (?i)humidity : (?P.+) expression. The result below is given. Is there anyway to extract just 0.82 which is the humidity I needed ? Need help on this, thanks in advance 😃

0.82
icon : cloudy
ozone : 263.15
precipIntensity : 0.001
precipProbability : 0.05
precipType : rain
pressure : 1005.57
summary : Dry and Overcast
temperature : 80.94

1 Solution

chris
Motivator

How about:

(?i)humidity : (?P<fieldname>[\d\.]+)

View solution in original post

chris
Motivator

How about:

(?i)humidity : (?P<fieldname>[\d\.]+)

kailun92
Communicator

Check you with you, do you know how to extract summary : Dry and Overcast ? Same situation. If cannot then how about icon ? how to extract the words out ? I am extraction the part below it also.

0 Karma

kailun92
Communicator

Thank you SO MUCH, i love you i have been solving for so long

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...