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

extract LAT and LONG from a string field

$
0
0
Hi all. I have a field with: Address=DG 14 KR 36 A 90 LAT:14.752811 LON:-79.543 I need to create three fields from here: Address=DG 14 KR 36 A 90 LAT=14.752811 LON=-79.543 I know the regexes for LAT and LONG: For LAT: (?<=LAT:)(-?\d+\.\d+) For LON: (?<=LON:)([\d.-]+) Address must be all the string before LAT word. I tried to LAT and LON: ... | field="Address" "(?.(?<=LAT:)(-?\d+\.\d+))\.(?.(?<=LON:)([\d.-]+))" But doesn't work. Any idea? Also, i need extract the address.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



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