<?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: splunk query only show 1 recipent in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632117#M14771</link>
    <description>&lt;P&gt;please help&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 03:14:07 GMT</pubDate>
    <dc:creator>sulaimancds</dc:creator>
    <dc:date>2023-02-24T03:14:07Z</dc:date>
    <item>
      <title>Why does splunk query only show 1 recipent?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632116#M14770</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=mail sender!="postmaster@groupncs.onmicrosoft.com"
| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match
| where isnull(domain_match)
| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2
| where isnotnull(domain_match2)
| stats values(recipient) values(subject) earliest(_time) AS "Earliest" latest(_time) AS "Latest" count by RecipientDomain sender
| sort -count
| convert ctime("Latest") | convert ctime("Earliest")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;original command&amp;nbsp; above&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;modify command below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=mail sender!="postmaster@groupncs.onmicrosoft.com"
| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match
| where isnull(domain_match)
| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2
| where isnotnull(domain_match2)
| table sender recipient subject DateTime
| sort recipent == 1
| where recipient == 1
| convert ctime(DateTime)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;when&amp;nbsp; i use where,&amp;nbsp;there is no results showing.&amp;nbsp; i only want to show results of a single recipient. if there are many do not show it .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 14:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632116#M14770</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-02-27T14:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632117#M14771</link>
      <description>&lt;P&gt;please help&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 03:14:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632117#M14771</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-02-24T03:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632119#M14772</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254197"&gt;@sulaimancds&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use mvcount() function to count recipients like below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mail sender!="postmaster@groupncs.onmicrosoft.com" 
| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match 
| where isnull(domain_match) 
| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2 
| where isnotnull(domain_match2) 
| stats values(recipient) as recipient values(subject) as subject earliest(_time) AS "Earliest" latest(_time) AS "Latest" count by RecipientDomain sender 
| where mvcount(recipient)=1
| sort -count 
| convert ctime("Latest") 
| convert ctime("Earliest")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 03:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632119#M14772</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-24T03:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632120#M14773</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;index=mail sender!="postmaster@groupncs.onmicrosoft.com"&lt;BR /&gt;| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match&lt;BR /&gt;| where isnull(domain_match)&lt;BR /&gt;| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2&lt;BR /&gt;| where isnotnull(domain_match2)&lt;BR /&gt;| table sender recipient subject DateTime&lt;BR /&gt;| sort recipent == 1&lt;BR /&gt;| where recipient == 1&lt;BR /&gt;| convert ctime(DateTime)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what about this command ? only datetime is not showing. only show results that contains 1 recipient.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 03:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632120#M14773</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-02-24T03:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632123#M14774</link>
      <description>&lt;P&gt;I didn't understand your question. Is your problem only for missing the DateTime field? That search does not give any output.&lt;/P&gt;&lt;P&gt;Did you try my reply? It should show you what you want.&lt;/P&gt;&lt;P&gt;Please be more specific.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 03:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632123#M14774</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-24T03:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632124#M14775</link>
      <description>&lt;P&gt;please try for the other command&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 03:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632124#M14775</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-02-24T03:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632130#M14776</link>
      <description>&lt;P&gt;okay sorry. for the new command which you have given , i would like to count the amount of subjects ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example in 24 hours , 10 emails , were being sent , so subject count should be 10 ? can you modify it for me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i will discuss the other command later&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 04:10:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632130#M14776</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-02-24T04:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632132#M14777</link>
      <description>&lt;P&gt;Please try below for subject count, it will show you the unique subject count.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mail sender!="postmaster@groupncs.onmicrosoft.com" 
| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match 
| where isnull(domain_match) 
| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2 
| where isnotnull(domain_match2) 
| stats values(recipient) as recipient values(subject) as subject earliest(_time) AS "Earliest" latest(_time) AS "Latest" count by RecipientDomain sender 
| where mvcount(recipient)=1
| eval subject_count=mvcount(subject)
| sort -count 
| convert ctime("Latest") 
| convert ctime("Earliest")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Feb 2023 04:15:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632132#M14777</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-24T04:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent new query</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632133#M14778</link>
      <description>&lt;P&gt;index=mail sender!="postmaster@groupncs.onmicrosoft.com"&lt;BR /&gt;| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match&lt;BR /&gt;| where isnull(domain_match)&lt;BR /&gt;| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2&lt;BR /&gt;| where isnotnull(domain_match2)&lt;BR /&gt;| table sender recipient subject DateTime&lt;BR /&gt;| sort recipient == 1&lt;BR /&gt;| convert ctime(DateTime)&lt;/P&gt;&lt;P&gt;this is my current modified command,&amp;nbsp; i want to show only 1 recipient, but sort recipient == 1 does not work.&lt;/P&gt;&lt;P&gt;also i would like to show subject count , from this sender to this recipent , in last 24 hours , 10 emails was sent so 10 subject count.&lt;/P&gt;&lt;P&gt;In addition to that , ctime(DateTime) does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kindly help.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 04:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632133#M14778</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-02-24T04:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent new query</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632135#M14779</link>
      <description>&lt;P&gt;Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mail sender!="postmaster@groupncs.onmicrosoft.com" 
| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match 
| where isnull(domain_match) 
| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2 
| where isnotnull(domain_match2) 
| stats first(_time) as firstTime latest(_time) as lastTime values(subject) as subject values(recipient) as recipient by sender 
| where mvcount(recipient)=1 
| eval subject_count=mvcount(subject) 
| convert ctime(*Time)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Feb 2023 04:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632135#M14779</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-24T04:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632145#M14780</link>
      <description>&lt;P&gt;hi i do not need the count&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;count by RecipientDomain sender&lt;/PRE&gt;&lt;P&gt;can remove this option and give me the full command without count&amp;nbsp;&lt;BR /&gt;also , i want to sort subject count from high to low , 10 highest being on top and low 1 being below.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 07:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632145#M14780</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-02-24T07:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632154#M14782</link>
      <description>&lt;P&gt;Hi, please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mail sender!="postmaster@groupncs.onmicrosoft.com" 
| lookup email_domain_whitelist domain AS RecipientDomain output domain as domain_match 
| where isnull(domain_match) 
| lookup all_email_provider_domains domain AS RecipientDomain output domain as domain_match2 
| where isnotnull(domain_match2) 
| stats values(recipient) as recipient values(subject) as subject earliest(_time) AS "Earliest" latest(_time) AS "Latest" by RecipientDomain sender 
| where mvcount(recipient)=1
| eval subject_count=mvcount(subject)
| sort - subject_count 
| convert ctime("Latest") 
| convert ctime("Earliest")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Feb 2023 08:04:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632154#M14782</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-24T08:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632156#M14783</link>
      <description>&lt;P&gt;Thank you, it works ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;next i would like to include in the results if there are any attachments in the email, show me the attachment name and size of the attachment in MB/GB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding on ,&lt;/P&gt;&lt;P&gt;also i have list of suspicious keywords to in a list in lookup editor called suspicoussubject_keywords.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you include the query to lookup for this keyword in subject and then display results?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 09:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632156#M14783</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-02-24T09:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632303#M14790</link>
      <description>&lt;P&gt;also i have list of suspicious keywords to in a list in lookup editor called suspicoussubject_keywords.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you include the query to lookup for this keyword in subject and then display results?&lt;/P&gt;&lt;P&gt;for example if there is the worder tender , in subject , results will be displayed.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 01:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632303#M14790</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-02-27T01:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query only show 1 recipent</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632309#M14791</link>
      <description>&lt;P&gt;hi&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 04:35:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-splunk-query-only-show-1-recipent/m-p/632309#M14791</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-02-27T04:35:55Z</dc:date>
    </item>
  </channel>
</rss>

