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

how to extract a string before the @ symbol from an email adress?

$
0
0
I have the username filed extraction as follows in the props.conf which extracts the email address:- [sourcetype_X] EXTRACT-XYZ = username="(?[^+\"]*)" which extracts the field as follows x12345@abc-def-ghij-01.com y67891@klm-def-ghij-01.com z45787@abc-def-ghij-01.com ABC-DEF Now what would be regex stanza to extract the username as follows from the above x12345 y67891 z45787 ABC-DEF

Viewing all articles
Browse latest Browse all 47296

Latest Images

Trending Articles



Latest Images

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