Splunk Search

Get a value from Search

abhi144
New Member

I have a search which is coming with this field-

timezone=America/Montreal(EDT)offset-14400(Daylight).

so how can i get only EDT? Any suggestion will be appreciated.

Tags (2)
0 Karma

MuS
Legend

Hi,

something like this should work:

... | rex field="timezone" "\((?<myTZ>[A-Z]+)\)" | ...

this will create a new field called myTZ

cheers, MuS

Get Updates on the Splunk Community!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...