<?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: How Can I Extract Specific Email Subject Keywords? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-Extract-Specific-Email-Subject-Keywords/m-p/466189#M140504</link>
    <description>&lt;P&gt;Just Perfect, It worked as it should. Thanks for your prompt support&lt;/P&gt;

&lt;P&gt;Thanks again,&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2020 20:44:38 GMT</pubDate>
    <dc:creator>zayedaljaberi</dc:creator>
    <dc:date>2020-04-02T20:44:38Z</dc:date>
    <item>
      <title>How Can I Extract Specific Email Subject Keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-Extract-Specific-Email-Subject-Keywords/m-p/466187#M140502</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Good evening,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;How to extract couple of subject email keywords from specific field "message_subject"&lt;/P&gt;
&lt;P&gt;Let's consider the below three dump subject emails that the user receive/send:&lt;BR /&gt;CEO urgent email for the invitation&lt;BR /&gt;CEO need the request urgently&lt;BR /&gt;secret national project&lt;/P&gt;
&lt;P&gt;I want to have count not for the whole subject email but only to visualize the number of "secret" and "urgent" without the full subject email and count per hour&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My query&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;index=mail-pri sourcetype="MSExchange*" sender=* OR recipient=* 
| search message_subject IN ("*secret*","*urgent*")
| search NOT sender IN ("noreply@xyz.com","info@xyz.com")
| timechart span=1h count by Message_subject
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The number of count I get (For example) Which is three counts&lt;BR /&gt;CEO urgent email for the invitation&lt;BR /&gt;CEO need the request urgently&lt;BR /&gt;secret national project&lt;/P&gt;
&lt;P&gt;What I want to achieve is to get count like.&lt;BR /&gt;Urgent 2&lt;BR /&gt;Secret 1&lt;/P&gt;
&lt;P&gt;for your kind support and thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 21:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Can-I-Extract-Specific-Email-Subject-Keywords/m-p/466187#M140502</guid>
      <dc:creator>zayedaljaberi</dc:creator>
      <dc:date>2020-06-08T21:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Extract Specific Email Subject Keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-Extract-Specific-Email-Subject-Keywords/m-p/466188#M140503</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mail-pri sourcetype="MSExchange*" sender=* OR recipient=* (message_subject="*secret*" OR message_subject="*urgent*")
| search NOT sender IN ("noreply@xyz.com","info@xyz.com")
| eval type=case(match(message_subject, "secret"), "secret", match(message_subject, "urgent"), "urgent", 1==1, "other")
| timechart span=1h count by type
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Apr 2020 19:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Can-I-Extract-Specific-Email-Subject-Keywords/m-p/466188#M140503</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-02T19:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Extract Specific Email Subject Keywords?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-Extract-Specific-Email-Subject-Keywords/m-p/466189#M140504</link>
      <description>&lt;P&gt;Just Perfect, It worked as it should. Thanks for your prompt support&lt;/P&gt;

&lt;P&gt;Thanks again,&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 20:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Can-I-Extract-Specific-Email-Subject-Keywords/m-p/466189#M140504</guid>
      <dc:creator>zayedaljaberi</dc:creator>
      <dc:date>2020-04-02T20:44:38Z</dc:date>
    </item>
  </channel>
</rss>

