Splunk Search

How to edit my rex to receive values for Start Date and End Date?

suresh364
New Member

Rex expression used : startDate= (?.*) endDate= (?.*)

Data format : &startDate=10/02/2016&endDate=10/02/2016&

Don't get any values back for the Start Date and End Date columns..

What is wrong? Thanks in advance

Radhak

Tags (2)
0 Karma
1 Solution

gokadroid
Motivator

Try:

\&startDate\=(?<startDate>[^\&]+)\&endDate\=(?<endDate>[^\&]+)\&

View solution in original post

0 Karma

sundareshr
Legend

Try this

| rex "startDate=(?<start>\d\d\/\d\d\/\d\d\d\d)\&endDate=(?<end>\d\d\/\d\d\/\d\d\d\d)"
0 Karma

suresh364
New Member

Thanks worked as well.

0 Karma

gokadroid
Motivator

Try:

\&startDate\=(?<startDate>[^\&]+)\&endDate\=(?<endDate>[^\&]+)\&
0 Karma

suresh364
New Member

Thank you . Worked great !

0 Karma

gokadroid
Motivator

you are welcome.

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...