<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Convert Name to Email in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Convert-Name-to-Email/m-p/533068#M8634</link>
    <description>&lt;P&gt;I am looking to convert a field labeled "name" to populate email.&lt;/P&gt;&lt;P&gt;I am wanting to have a search that takes a name in a field and formats it to match our certain naming convention.&lt;/P&gt;&lt;P&gt;If the field has a name of Jim Smith, I want a second field to covert the name of Jim Smith to &lt;A href="mailto:Jim.Smith@domain.com" target="_blank" rel="noopener"&gt;Jim.Smith@domain.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am looking to replace the space between the first and last name with a "." and add&amp;nbsp;@domain.com after the lastname.&lt;/P&gt;&lt;P&gt;What the best way about going about this?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Dec 2020 20:17:19 GMT</pubDate>
    <dc:creator>Becherer</dc:creator>
    <dc:date>2020-12-14T20:17:19Z</dc:date>
    <item>
      <title>Convert Name to Email</title>
      <link>https://community.splunk.com/t5/Reporting/Convert-Name-to-Email/m-p/533068#M8634</link>
      <description>&lt;P&gt;I am looking to convert a field labeled "name" to populate email.&lt;/P&gt;&lt;P&gt;I am wanting to have a search that takes a name in a field and formats it to match our certain naming convention.&lt;/P&gt;&lt;P&gt;If the field has a name of Jim Smith, I want a second field to covert the name of Jim Smith to &lt;A href="mailto:Jim.Smith@domain.com" target="_blank" rel="noopener"&gt;Jim.Smith@domain.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am looking to replace the space between the first and last name with a "." and add&amp;nbsp;@domain.com after the lastname.&lt;/P&gt;&lt;P&gt;What the best way about going about this?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 20:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Convert-Name-to-Email/m-p/533068#M8634</guid>
      <dc:creator>Becherer</dc:creator>
      <dc:date>2020-12-14T20:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Name to Email</title>
      <link>https://community.splunk.com/t5/Reporting/Convert-Name-to-Email/m-p/533072#M8635</link>
      <description>&lt;P&gt;There are lots of edge cases that can break this but try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval name="Jim Smith" 
| rex field=name "(?P&amp;lt;firstName&amp;gt;\w+)\s(?P&amp;lt;surName&amp;gt;\w+)" 
| eval email=firstName.".".surName."@yourdomain.com"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 21:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Convert-Name-to-Email/m-p/533072#M8635</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-12-14T21:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Name to Email</title>
      <link>https://community.splunk.com/t5/Reporting/Convert-Name-to-Email/m-p/533286#M8637</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more thing- There is a second group of names that have a "name\Jim.Smith".&lt;/P&gt;&lt;P&gt;Is there a way to remove the "name\" and add&amp;nbsp;@domain.com after. There is no need to add a "." for this group because it's already added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just didn't know if it's possible to have what you sent over to look for two possibilities.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help! The first one worked, now I am just wanting to capture the remaining 20%.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 07:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Convert-Name-to-Email/m-p/533286#M8637</guid>
      <dc:creator>Becherer</dc:creator>
      <dc:date>2020-12-16T07:31:02Z</dc:date>
    </item>
  </channel>
</rss>

