<?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 monitor the usage of hundreds of specific email addresses? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296192#M89367</link>
    <description>&lt;P&gt;If you are only seeing results related to one email, double-check that the subsearch is working appropriately by doing this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|inputlookup F17-created |stats values(email_address) AS userEmail&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Does that list all the email addresses you expect?&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2017 23:05:17 GMT</pubDate>
    <dc:creator>elliotproebstel</dc:creator>
    <dc:date>2017-11-17T23:05:17Z</dc:date>
    <item>
      <title>How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296184#M89359</link>
      <description>&lt;P&gt;I want to upload hundreds of email addresses in some format, so as to track the activity of each of those email addresses in one of our Sources. How can I do this?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 20:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296184#M89359</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2017-11-16T20:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296185#M89360</link>
      <description>&lt;P&gt;Hi @earriaga - It would help if you upload a sample event that you intend to ingest into Splunk and clarify what you mean by track the activity. Are you just looking for event count by email address or something else?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 20:49:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296185#M89360</guid>
      <dc:creator>rphillips_splk</dc:creator>
      <dc:date>2017-11-16T20:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296186#M89361</link>
      <description>&lt;P&gt;Sure!  for example this querie&lt;/P&gt;

&lt;P&gt;index="mobile_app_tracking" event=song |chart count(data.url) as SongsPlayed  over userEmail  |sort -SongsPlayed  &lt;/P&gt;

&lt;P&gt;Tells me how many songs were played by each userEmail.&lt;/P&gt;

&lt;P&gt;Now, I want to do this but for a predefined set of emails.&lt;/P&gt;

&lt;P&gt;Imagine an excel with 300 email addresses, I want to know how many songs these specific email address (in my excel) played?  or even if the played at all.&lt;/P&gt;

&lt;P&gt;Is that possible?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:53:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296186#M89361</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2020-09-29T16:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296187#M89362</link>
      <description>&lt;P&gt;Here's one way to do it: Create a lookup table containing the items you want to monitor, reference it with an &lt;CODE&gt;inputlookup&lt;/CODE&gt; and use the results of that &lt;CODE&gt;inputlookup&lt;/CODE&gt; in the base search. &lt;/P&gt;

&lt;P&gt;Let's say your lookup will be called &lt;CODE&gt;montored_emails&lt;/CODE&gt;. So upload a CSV containing a single column, with the header &lt;CODE&gt;email_address&lt;/CODE&gt;. In each row will be one email address, nothing more. Create a lookup from that CSV file. Then your search will look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="mobile_app_tracking" event=song 
[ | inputlookup monitored_emails 
| stats values(email_address) AS userEmail 
| format ] 
| chart count(data.url) as SongsPlayed over userEmail 
| sort -SongsPlayed
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Nov 2017 21:37:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296187#M89362</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-11-16T21:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296188#M89363</link>
      <description>&lt;P&gt;Thank you!  I uploaded csv called in Splunk "F17-created.csv" to the search app with all apps permissions, all users.&lt;BR /&gt;
File only has one column, first row called email_address.&lt;/P&gt;

&lt;P&gt;I did not create a Lookup definition.&lt;/P&gt;

&lt;P&gt;Here is the query:&lt;/P&gt;

&lt;P&gt;index="mobile_app_tracking" event=song&lt;BR /&gt;
[|inputlookup F17-created |stats values (email_address) A userEmail ]&lt;BR /&gt;
|chart count (data.url) as SongsPlayed over userEmail&lt;BR /&gt;
|sort -SongsPlayed &lt;/P&gt;

&lt;P&gt;I am not familiar with the square brackets. I get this error with the brackets:&lt;/P&gt;

&lt;P&gt;Error in 'inputlookup' command: This command must be the first command of a search.&lt;/P&gt;

&lt;P&gt;And without brackets I get the same error:&lt;/P&gt;

&lt;P&gt;Error in 'inputlookup' command: This command must be the first command of a search.&lt;/P&gt;

&lt;P&gt;Suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296188#M89363</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2020-09-29T16:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296189#M89364</link>
      <description>&lt;P&gt;I have a few thoughts. &lt;/P&gt;

&lt;P&gt;First, you say you uploaded the CSV file into the search app. Did you also create a lookup based on that file? (If you haven't, you'll need to go to &lt;CODE&gt;Settings &amp;gt; Lookups &amp;gt; Lookup Definitions&lt;/CODE&gt; and create a new lookup named &lt;CODE&gt;F17-created&lt;/CODE&gt; and point it at the file you uploaded.) &lt;/P&gt;

&lt;P&gt;If you have created the lookup, try this alone in the search bar: &lt;CODE&gt;|inputlookup F17-created |stats values(email_address) AS userEmail | format&lt;/CODE&gt; &amp;lt;- Note that there are a few differences here between what you have pasted above and what I've written: Your code above has a space between the word &lt;CODE&gt;values&lt;/CODE&gt; and the open paren following it, and there needs to be no space; also, your code is missing the letter s in the word &lt;CODE&gt;AS&lt;/CODE&gt;; also, you ommitted the &lt;CODE&gt;format&lt;/CODE&gt; command. But I actually don't think any of those could be the root issue, because they would be giving you a very different error - so did you copy/paste the exact code you're running?&lt;/P&gt;

&lt;P&gt;As a little background - the square brackets are used to separate a subsearch. Here's a good overview of subsearches:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.0/SearchTutorial/Useasubsearch"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.0/SearchTutorial/Useasubsearch&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So the way I'm looking to use the subsearch here is to generate a list of all email addresses from the lookup file, and use those as search terms in the outer search. If everything is structured appropriately, you should not get that error about &lt;CODE&gt;inputlookup&lt;/CODE&gt; needing to be the first command in a search, because it is the first command inside the subsearch. Just for a little extra background, here's good info about &lt;CODE&gt;inputlookup&lt;/CODE&gt;:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/Inputlookup"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/Inputlookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 18:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296189#M89364</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-11-17T18:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296190#M89365</link>
      <description>&lt;P&gt;Thank you again!&lt;/P&gt;

&lt;P&gt;I had not created a Lookup Definition. I just did that, and corrected the syntax.&lt;/P&gt;

&lt;P&gt;I got a result, only for one email out of 300.&lt;BR /&gt;
I will have to do it all again with a file of users that I know use the system just to verify that the result is correct.&lt;/P&gt;

&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 18:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296190#M89365</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2017-11-17T18:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296191#M89366</link>
      <description>&lt;P&gt;Just so you know, I did the whole thing with a Control file (pulled from my original query) And it worked perfectly.&lt;/P&gt;

&lt;P&gt;One question if I may, when i run the query for F17-created, if the time is the last 24 hours, I get one. If the time is All time, I get none. &lt;BR /&gt;
I do not understand that.&lt;/P&gt;

&lt;P&gt;Again, thank you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 20:07:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296191#M89366</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2017-11-17T20:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296192#M89367</link>
      <description>&lt;P&gt;If you are only seeing results related to one email, double-check that the subsearch is working appropriately by doing this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|inputlookup F17-created |stats values(email_address) AS userEmail&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Does that list all the email addresses you expect?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 23:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296192#M89367</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-11-17T23:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296193#M89368</link>
      <description>&lt;P&gt;Hmm...my guess on this is that your search is timing out, perhaps? But I'm not sure. That's quite strange. If the answer is generally working for you, I'd recommend accepting the answer to this and posting the 24-hour vs all-time scenario as a new question - because someone else might be able to help you, but they likely won't read this deep into the comments here to find the new question!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 23:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296193#M89368</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-11-17T23:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296194#M89369</link>
      <description>&lt;P&gt;Yes, it shows me all the emails!! &lt;BR /&gt;
Thank you very much for all your help!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 18:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296194#M89369</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2017-11-20T18:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296195#M89370</link>
      <description>&lt;P&gt;Yes, it shows me all the emails!! &lt;BR /&gt;
Thank you very much for all your help!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 18:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296195#M89370</guid>
      <dc:creator>earriaga</dc:creator>
      <dc:date>2017-11-20T18:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I monitor the usage of hundreds of specific email addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296196#M89371</link>
      <description>&lt;P&gt;Glad to help! Want to mark the answer as accepted, so that others can find it if they need the same help?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 18:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-monitor-the-usage-of-hundreds-of-specific-email/m-p/296196#M89371</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-11-20T18:05:55Z</dc:date>
    </item>
  </channel>
</rss>

