<?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: Counting Emails with the same subject, and reporting higher than average in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165118#M186064</link>
    <description>&lt;P&gt;Hi Yes, the subject field is already extracted, so I can do something like | stats count AS BigSubjects BY Subject which has me in the right direction....&lt;BR /&gt;
Its difficult to post data as there is too much to anonomize. I'm working with cisco_esa though.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2014 19:21:55 GMT</pubDate>
    <dc:creator>DerekKing</dc:creator>
    <dc:date>2014-02-25T19:21:55Z</dc:date>
    <item>
      <title>Counting Emails with the same subject, and reporting higher than average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165115#M186061</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;I've had an incident where phishing email has come through my reputation filter, and it got me to thinking splunk must be able to look for emails with the same subject, take the average on a per_hour basis and hold a running total of some description. Then each hour if the number of emails with the same subject exceeds the first value it should alert.&lt;/P&gt;

&lt;P&gt;So - If 'normally' its possible to see 2 emails per hour with the same subject, then at some point I see 5 emails, this could alert me to a phishing attack.&lt;/P&gt;

&lt;P&gt;I've looked a anomalies, and I think it may be able to help, but i'm not sure at this minute how to even count entries with the same subject.&lt;/P&gt;

&lt;P&gt;Any help on this is appreciated. &lt;BR /&gt;
Derek&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 17:54:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165115#M186061</guid>
      <dc:creator>DerekKing</dc:creator>
      <dc:date>2014-02-25T17:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Emails with the same subject, and reporting higher than average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165116#M186062</link>
      <description>&lt;P&gt;Can you post some event examples?&lt;BR /&gt;&lt;BR /&gt;
Is the email subject extracted as a field already?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165116#M186062</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-02-25T18:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Emails with the same subject, and reporting higher than average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165117#M186063</link>
      <description>&lt;P&gt;I would probably do something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=email OR whatever_you_need earliest=-7d
| timeframe=if(_time &amp;gt; now()-3600,"LastHour","LastWeek")
| bucket _time span=1h
| stats count by subject timeframe _time
| chart avg(count) by subject timeframe
| eval PossibleProblem=if(LastHour&amp;gt;LastWeek,"YES","")
| rename LastHour as "Avg Emails/Hour Last Hour" LastWeek as "Avg Emails/Hour Last Week"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You might want to find a way to eliminate intra-company conversations, though...&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 19:02:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165117#M186063</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-02-25T19:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Emails with the same subject, and reporting higher than average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165118#M186064</link>
      <description>&lt;P&gt;Hi Yes, the subject field is already extracted, so I can do something like | stats count AS BigSubjects BY Subject which has me in the right direction....&lt;BR /&gt;
Its difficult to post data as there is too much to anonomize. I'm working with cisco_esa though.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 19:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165118#M186064</guid>
      <dc:creator>DerekKing</dc:creator>
      <dc:date>2014-02-25T19:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Emails with the same subject, and reporting higher than average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165119#M186065</link>
      <description>&lt;P&gt;thanks for this, i've not got my head around how its working at the minute, but splunk tells me there is an error in the timechart, timeframe is not a valid argument. Looking at the docs, I can't supply more than one argument to the BY clause ?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 19:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165119#M186065</guid>
      <dc:creator>DerekKing</dc:creator>
      <dc:date>2014-02-25T19:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Emails with the same subject, and reporting higher than average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165120#M186066</link>
      <description>&lt;P&gt;Gack - sorry about that - I've revised my answer above...&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2014 07:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165120#M186066</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-03-04T07:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Emails with the same subject, and reporting higher than average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165121#M186067</link>
      <description>&lt;P&gt;A generic approach could be to run:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=email | prelertautodetect count by subject
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This automatically baselines the periodic variations in the data.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://apps.splunk.com/app/1306/"&gt;https://apps.splunk.com/app/1306/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2014 15:56:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-Emails-with-the-same-subject-and-reporting-higher-than/m-p/165121#M186067</guid>
      <dc:creator>prelert</dc:creator>
      <dc:date>2014-09-02T15:56:33Z</dc:date>
    </item>
  </channel>
</rss>

