<?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 Re: How to index email values without special characters? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210446#M41449</link>
    <description>&lt;P&gt;Fixed with an edit!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2016 20:51:43 GMT</pubDate>
    <dc:creator>andresito123</dc:creator>
    <dc:date>2016-06-14T20:51:43Z</dc:date>
    <item>
      <title>How to index email values without special characters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210442#M41445</link>
      <description>&lt;P&gt;Hello to the community!&lt;/P&gt;

&lt;P&gt;I have an email field with values following this pattern: &lt;CODE&gt;&amp;lt;example@example.com&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Is there any way to remove the special characters &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;gt;&lt;/CODE&gt; and index the value as &lt;A href="mailto:example@example.com"&gt;example@example.com&lt;/A&gt;?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210442#M41445</guid>
      <dc:creator>andresito123</dc:creator>
      <dc:date>2016-06-14T19:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to index email values without special characters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210443#M41446</link>
      <description>&lt;P&gt;Hi @andresito123&lt;/P&gt;

&lt;P&gt;I think the pattern you were trying to show didn't render properly. I would edit your question and re-paste your sample pattern, but be sure to use the text editing tools. Highlight your code, then click on the "Code Sample" button for it to display. &lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210443#M41446</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2016-06-14T19:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to index email values without special characters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210444#M41447</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Several ways to do it. Please check this accepted answer&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/172300/how-to-extract-the-email-address-from-the-my-logs.html"&gt;https://answers.splunk.com/answers/172300/how-to-extract-the-email-address-from-the-my-logs.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, you could achieve something similar with SEDCMD. PLease see the props.conf&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Syntax:

&lt;UL&gt;
&lt;LI&gt;replace - s/regex/replacement/flags

&lt;UL&gt;
&lt;LI&gt;regex is a perl regular expression (optionally containing capturing
groups).&lt;/LI&gt;
&lt;LI&gt;replacement is a string to replace the regex match. Use \n for back
references, where "n" is a single digit.&lt;/LI&gt;
&lt;LI&gt;flags can be either: g to replace all matches, or a number to
replace a specified match.&lt;/LI&gt;
&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;substitute - y/string1/string2/

&lt;UL&gt;
&lt;LI&gt;substitutes the string1[i] with string2[i]&lt;/LI&gt;
&lt;/UL&gt;&lt;/LI&gt;
&lt;/UL&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;simple example: SEDCMD-hash = "s/this/that/g"&lt;/P&gt;

&lt;P&gt;Make sure it doesn't conflict with other &amp;lt;&amp;gt; in the same log.&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:57:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210444#M41447</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2016-06-14T19:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to index email values without special characters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210445#M41448</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=MyEmailFieldName mode=sed "s/[&amp;lt;&amp;gt;]//g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jun 2016 20:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210445#M41448</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-14T20:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to index email values without special characters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210446#M41449</link>
      <description>&lt;P&gt;Fixed with an edit!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 20:51:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210446#M41449</guid>
      <dc:creator>andresito123</dc:creator>
      <dc:date>2016-06-14T20:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to index email values without special characters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210447#M41450</link>
      <description>&lt;P&gt;I have put in my /opt/splunk/etc/system/local/props.conf the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
SEDCMD-stripEmail = "s/[&amp;lt;&amp;gt;]//g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it seems that the emails are indexed as: &lt;CODE&gt;&amp;lt;example@example.com&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 20:52:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210447#M41450</guid>
      <dc:creator>andresito123</dc:creator>
      <dc:date>2016-06-14T20:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to index email values without special characters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210448#M41451</link>
      <description>&lt;P&gt;This works, but I want it to have in indexing time. I don't want the special characters to show up and need to map it on CIM so as Enterprise Security will correlate this info as an email without &lt;CODE&gt;&amp;lt; and &amp;gt;&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 20:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210448#M41451</guid>
      <dc:creator>andresito123</dc:creator>
      <dc:date>2016-06-14T20:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to index email values without special characters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210449#M41452</link>
      <description>&lt;P&gt;Then use SEDCMD (with the same sed string without the quotes)"&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Data/Anonymizedatausingconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.3/Data/Anonymizedatausingconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210449#M41452</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-14T21:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to index email values without special characters?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210450#M41453</link>
      <description>&lt;P&gt;Try without quotes&lt;/P&gt;

&lt;P&gt;[mysourcetype]&lt;BR /&gt;
SEDCMD-stripemail=s/[&amp;lt;&amp;gt;]//g   as @woodcock stated&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 21:06:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-email-values-without-special-characters/m-p/210450#M41453</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2016-06-14T21:06:26Z</dc:date>
    </item>
  </channel>
</rss>

