Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Use regex on a known date field

$
0
0
First, new to regex, so don't really know where to start. I've done some Google searching and up and down Splunk Answers. I am creating a POC to search data and it has a known date field. The date field can be populated as d/m/yyyy, dd/m/yyyy, d/mm/yyyy, or dd/mm/year. It always follows the format of day/month/year separated by slashes. Examples: 1/1/2017 1/11/2017 11/1/2017 11/11/2017 What I would like to do is extract that day month and year as independent pieces to analyze. Id like to extract values based on the slash. Start point: FiledDate = m/d/yyyy End point: FiledDateMonth = m , FiledDateDay = d , FiledDayYear = yyyy Thanks for your help.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>