<?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: Regex during getting data in in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Regex-during-getting-data-in/m-p/539633#M90388</link>
    <description>&lt;P&gt;Try adding the parameter&amp;nbsp;&lt;SPAN&gt;max_match=0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;base search | rex max_match=0 "regexexpression"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 07:25:04 GMT</pubDate>
    <dc:creator>saravanan90</dc:creator>
    <dc:date>2021-02-12T07:25:04Z</dc:date>
    <item>
      <title>Regex during getting data in</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-during-getting-data-in/m-p/539630#M90387</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a question. I have events like:&lt;/P&gt;&lt;P&gt;Mon Mar 19 20:16:03 2018 Info: Delayed: DCID 8414309 MID 19410908 From: &amp;lt;WeiZhang@example.com&amp;gt; To: &amp;lt;mcintosh@buttercupgames.com&amp;gt; RID 0 - 4.3.2 - Not accepting messages at this time ('421', ['4.3.2 try again later'])&lt;/P&gt;&lt;P&gt;I wrote a regex expression to cut email adresses from the events -&amp;nbsp;&amp;lt;\w+@\w+.\w+&amp;gt;&lt;/P&gt;&lt;P&gt;How can I set this expression to get ONLY email addresses from logs? I need to do it on gettind data in phase, not after (I download data from simple txt file). Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 07:00:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-during-getting-data-in/m-p/539630#M90387</guid>
      <dc:creator>bosseres</dc:creator>
      <dc:date>2021-02-12T07:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regex during getting data in</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-during-getting-data-in/m-p/539633#M90388</link>
      <description>&lt;P&gt;Try adding the parameter&amp;nbsp;&lt;SPAN&gt;max_match=0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;base search | rex max_match=0 "regexexpression"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 07:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-during-getting-data-in/m-p/539633#M90388</guid>
      <dc:creator>saravanan90</dc:creator>
      <dc:date>2021-02-12T07:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regex during getting data in</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-during-getting-data-in/m-p/539639#M90389</link>
      <description>&lt;P&gt;Thank you for responding.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to cut email adresses on adding data phase, not when it's already indexed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 07:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-during-getting-data-in/m-p/539639#M90389</guid>
      <dc:creator>bosseres</dc:creator>
      <dc:date>2021-02-12T07:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regex during getting data in</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Regex-during-getting-data-in/m-p/539641#M90390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228794"&gt;@bosseres&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You should use below settings on your props.conf and transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;props.conf
[your_sourcetype]
TRANSFORMS-clear_data = keep_email

transforms.conf
[keep_email]
REGEX = \&amp;lt;(\w+@\w+.\w+)\&amp;gt;
FORMAT = $1
DEST_KEY = _raw&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Feb 2021 07:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Regex-during-getting-data-in/m-p/539641#M90390</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-12T07:58:21Z</dc:date>
    </item>
  </channel>
</rss>

