<?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 Splunk Light Email Anonymization before Indexing in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Light-Email-Anonymization-before-Indexing/m-p/343610#M101794</link>
    <description>&lt;P&gt;Hello everybody, &lt;/P&gt;

&lt;P&gt;I am new to Splunk and I try to anonymize an email adress of my Logfile with the help of files props.conf and transforms.conf. &lt;BR /&gt;
I copied the files into the etc/system/local directory and adopt them like this: &lt;/P&gt;

&lt;P&gt;props.conf: &lt;BR /&gt;
[MyLog]&lt;BR /&gt;
TRANSFORMS-anonymize = email-anonymizer&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
[email-anonymizer]&lt;BR /&gt;
DEST_KEY = &lt;EM&gt;raw&lt;BR /&gt;
REGEX = ([a-zA-Z0-9&lt;/EM&gt;.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+)&lt;BR /&gt;
FORMAT = *********&lt;/P&gt;

&lt;P&gt;This is a row of my sample Logfile: &lt;/P&gt;

&lt;P&gt;Oct 26 09:38:24 AAA123 BBB adhjjd adjhah &lt;STRONG&gt;&lt;A href="mailto:massss@web.de" target="_blank"&gt;massss@web.de&lt;/A&gt;&lt;/STRONG&gt; dkjasd adkdsjkd&lt;/P&gt;

&lt;P&gt;I stopped Splunk, cleaned the index and started Splunk new. The source name of my Logfile is "MyLog". &lt;BR /&gt;
Thats what Splunk made out of it: &lt;/P&gt;

&lt;P&gt;10/26/17 9:38:24.000 AM *********&lt;/P&gt;

&lt;P&gt;I also tried FORMAT=$1*****$2, to concat the strings, but this does not work at all. &lt;BR /&gt;
Can anybody please give me a hint, what I'm doing wrong or if it is better to use a sed cmd? &lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;BR /&gt;
Mel&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:34:08 GMT</pubDate>
    <dc:creator>mseidel</dc:creator>
    <dc:date>2020-09-29T16:34:08Z</dc:date>
    <item>
      <title>Splunk Light Email Anonymization before Indexing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Light-Email-Anonymization-before-Indexing/m-p/343610#M101794</link>
      <description>&lt;P&gt;Hello everybody, &lt;/P&gt;

&lt;P&gt;I am new to Splunk and I try to anonymize an email adress of my Logfile with the help of files props.conf and transforms.conf. &lt;BR /&gt;
I copied the files into the etc/system/local directory and adopt them like this: &lt;/P&gt;

&lt;P&gt;props.conf: &lt;BR /&gt;
[MyLog]&lt;BR /&gt;
TRANSFORMS-anonymize = email-anonymizer&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
[email-anonymizer]&lt;BR /&gt;
DEST_KEY = &lt;EM&gt;raw&lt;BR /&gt;
REGEX = ([a-zA-Z0-9&lt;/EM&gt;.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+)&lt;BR /&gt;
FORMAT = *********&lt;/P&gt;

&lt;P&gt;This is a row of my sample Logfile: &lt;/P&gt;

&lt;P&gt;Oct 26 09:38:24 AAA123 BBB adhjjd adjhah &lt;STRONG&gt;&lt;A href="mailto:massss@web.de" target="_blank"&gt;massss@web.de&lt;/A&gt;&lt;/STRONG&gt; dkjasd adkdsjkd&lt;/P&gt;

&lt;P&gt;I stopped Splunk, cleaned the index and started Splunk new. The source name of my Logfile is "MyLog". &lt;BR /&gt;
Thats what Splunk made out of it: &lt;/P&gt;

&lt;P&gt;10/26/17 9:38:24.000 AM *********&lt;/P&gt;

&lt;P&gt;I also tried FORMAT=$1*****$2, to concat the strings, but this does not work at all. &lt;BR /&gt;
Can anybody please give me a hint, what I'm doing wrong or if it is better to use a sed cmd? &lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;BR /&gt;
Mel&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:34:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Light-Email-Anonymization-before-Indexing/m-p/343610#M101794</guid>
      <dc:creator>mseidel</dc:creator>
      <dc:date>2020-09-29T16:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Light Email Anonymization before Indexing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Light-Email-Anonymization-before-Indexing/m-p/343611#M101795</link>
      <description>&lt;P&gt;Hello everybody, &lt;/P&gt;

&lt;P&gt;I helped myself by creating a working sed script. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MyLog]
SEDCMD-mel = s/([a-zA-Z0-9_.+-]+\@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)/**@**.**/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm quite sure the other way does not work correctly or only for key/value pairs. &lt;/P&gt;

&lt;P&gt;Greetings&lt;BR /&gt;
Mel&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2017 21:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Light-Email-Anonymization-before-Indexing/m-p/343611#M101795</guid>
      <dc:creator>mseidel</dc:creator>
      <dc:date>2017-11-05T21:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Light Email Anonymization before Indexing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Light-Email-Anonymization-before-Indexing/m-p/343612#M101796</link>
      <description>&lt;P&gt;mseidel - I changed your snippet to "code" - Hopefully that made the formatting preserved better.&lt;/P&gt;

&lt;P&gt;I think it &lt;EM&gt;entirely&lt;/EM&gt; appropriate for you to accept your own answer in this case and collect your karma.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 02:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Light-Email-Anonymization-before-Indexing/m-p/343612#M101796</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-11-14T02:51:58Z</dc:date>
    </item>
  </channel>
</rss>

