<?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 sendmail addresses in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/sendmail-addresses/m-p/23976#M4341</link>
    <description>&lt;P&gt;I have a list of email addresses I need to process.  Some of the emails begin with a &amp;lt; and end with a &amp;gt;.    Some do not.  I need all addresses to not include these characters.&lt;/P&gt;

&lt;P&gt;I've developed the following script which strips out these characters, but how do I tell the script to ignore addresses that don't include the &amp;lt; or &amp;gt; symbol?&lt;/P&gt;

&lt;P&gt;index=syslog_data sendmail | top to | eval T1=split(to, "&amp;lt;") | eval first=mvindex(T1,1) |  eval T2=split(first, "&amp;gt;") | eval second=mvindex(T1,2)&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 07 Feb 2013 20:52:14 GMT</pubDate>
    <dc:creator>DTERM</dc:creator>
    <dc:date>2013-02-07T20:52:14Z</dc:date>
    <item>
      <title>sendmail addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sendmail-addresses/m-p/23976#M4341</link>
      <description>&lt;P&gt;I have a list of email addresses I need to process.  Some of the emails begin with a &amp;lt; and end with a &amp;gt;.    Some do not.  I need all addresses to not include these characters.&lt;/P&gt;

&lt;P&gt;I've developed the following script which strips out these characters, but how do I tell the script to ignore addresses that don't include the &amp;lt; or &amp;gt; symbol?&lt;/P&gt;

&lt;P&gt;index=syslog_data sendmail | top to | eval T1=split(to, "&amp;lt;") | eval first=mvindex(T1,1) |  eval T2=split(first, "&amp;gt;") | eval second=mvindex(T1,2)&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2013 20:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sendmail-addresses/m-p/23976#M4341</guid>
      <dc:creator>DTERM</dc:creator>
      <dc:date>2013-02-07T20:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/sendmail-addresses/m-p/23977#M4342</link>
      <description>&lt;P&gt;Consider this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=5m | eval email = if((starttime % 600) = 0, "&amp;lt;foo@bar.com&amp;gt;", "bar@foo.com") | eval fixedemail = replace(email, "(^&amp;lt;)|(&amp;gt;$)", "")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Feb 2013 22:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/sendmail-addresses/m-p/23977#M4342</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-07T22:56:51Z</dc:date>
    </item>
  </channel>
</rss>

