<?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 How can I send alerts based on usernames? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-can-I-send-alerts-based-on-usernames/m-p/99077#M1408</link>
    <description>&lt;P&gt;My log file contains several lines with the following format:&lt;BR /&gt;
... Failed password for invalid user &lt;EM&gt;someuser&lt;/EM&gt; from &lt;EM&gt;somehost&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Now, I would like to send an e-mail alert every time I see this line for any new user.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Rafael&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2011 21:40:47 GMT</pubDate>
    <dc:creator>rbonillaa</dc:creator>
    <dc:date>2011-05-10T21:40:47Z</dc:date>
    <item>
      <title>How can I send alerts based on usernames?</title>
      <link>https://community.splunk.com/t5/Alerting/How-can-I-send-alerts-based-on-usernames/m-p/99077#M1408</link>
      <description>&lt;P&gt;My log file contains several lines with the following format:&lt;BR /&gt;
... Failed password for invalid user &lt;EM&gt;someuser&lt;/EM&gt; from &lt;EM&gt;somehost&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Now, I would like to send an e-mail alert every time I see this line for any new user.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Rafael&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2011 21:40:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-can-I-send-alerts-based-on-usernames/m-p/99077#M1408</guid>
      <dc:creator>rbonillaa</dc:creator>
      <dc:date>2011-05-10T21:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I send alerts based on usernames?</title>
      <link>https://community.splunk.com/t5/Alerting/How-can-I-send-alerts-based-on-usernames/m-p/99078#M1409</link>
      <description>&lt;P&gt;Typically the way to track state in Splunk is via a &lt;A href="http://www.splunk.com/base/Documentation/latest/Knowledge/Addfieldsfromexternaldatasources"&gt;lookup table&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Create a lookup with two fields -- &lt;CODE&gt;user&lt;/CODE&gt; and &lt;CODE&gt;firstSeen&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Then, do one of the following:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Create two searches. The first just maintains the lookup table, and the second does your alerting based on a search using &lt;CODE&gt;inputlookup&lt;/CODE&gt; instead of querying the indexed data.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Create one search that pulls in your new events and the lookup table both, then outputs the updated lookup table, then filters the results to recent entries. Trigger the alert if any are found with firstSeen &amp;gt; now()-xx seconds.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 10 May 2011 22:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-can-I-send-alerts-based-on-usernames/m-p/99078#M1409</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2011-05-10T22:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I send alerts based on usernames?</title>
      <link>https://community.splunk.com/t5/Alerting/How-can-I-send-alerts-based-on-usernames/m-p/99079#M1410</link>
      <description>&lt;P&gt;Thanks, I'll try to work with lookup tables.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Rafael&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2011 19:41:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-can-I-send-alerts-based-on-usernames/m-p/99079#M1410</guid>
      <dc:creator>rbonillaa</dc:creator>
      <dc:date>2011-05-11T19:41:14Z</dc:date>
    </item>
  </channel>
</rss>

