<?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 Summarize IDs from several log entries in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Summarize-IDs-from-several-log-entries/m-p/501637#M139660</link>
    <description>&lt;P&gt;Hey, &lt;/P&gt;

&lt;P&gt;i have a Firewall Log and want to count the sending/receiving domains. &lt;BR /&gt;
My problem is that there is for one email three or more log entrys.&lt;BR /&gt;
Each message has a uniqe ID, which is available in every associated log entry.&lt;BR /&gt;
Is it possible to merge these, so that i dont count an email twice or more.&lt;/P&gt;

&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;My current search looks like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "to=&amp;lt;(?[\w\d\.\-]+\@(?[\d\w\.\-]+)\&amp;gt;)" 
| stats count(domain2) AS Anzahl by domain2 
| rename domain2 AS "Domain Outgoing Anzahl" 
| sort - Anzahl 
| head 50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Mar 2020 12:37:40 GMT</pubDate>
    <dc:creator>friziqz</dc:creator>
    <dc:date>2020-03-27T12:37:40Z</dc:date>
    <item>
      <title>Summarize IDs from several log entries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summarize-IDs-from-several-log-entries/m-p/501637#M139660</link>
      <description>&lt;P&gt;Hey, &lt;/P&gt;

&lt;P&gt;i have a Firewall Log and want to count the sending/receiving domains. &lt;BR /&gt;
My problem is that there is for one email three or more log entrys.&lt;BR /&gt;
Each message has a uniqe ID, which is available in every associated log entry.&lt;BR /&gt;
Is it possible to merge these, so that i dont count an email twice or more.&lt;/P&gt;

&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;My current search looks like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "to=&amp;lt;(?[\w\d\.\-]+\@(?[\d\w\.\-]+)\&amp;gt;)" 
| stats count(domain2) AS Anzahl by domain2 
| rename domain2 AS "Domain Outgoing Anzahl" 
| sort - Anzahl 
| head 50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2020 12:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summarize-IDs-from-several-log-entries/m-p/501637#M139660</guid>
      <dc:creator>friziqz</dc:creator>
      <dc:date>2020-03-27T12:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize IDs from several log entries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summarize-IDs-from-several-log-entries/m-p/501638#M139661</link>
      <description>&lt;P&gt;Try this query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "to=&amp;lt;(?[\w\d\.\-]+\@(?[\d\w\.\-]+)\&amp;gt;)" 
| dedup uniqueID
| stats count(domain2) AS Anzahl by domain2 
| rename domain2 AS "Domain Outgoing Anzahl" 
| sort 50 - Anzahl 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2020 12:50:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summarize-IDs-from-several-log-entries/m-p/501638#M139661</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-27T12:50:02Z</dc:date>
    </item>
  </channel>
</rss>

