<?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 to generate an alert based on new database table entry? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-generate-an-alert-based-on-new-database-table-entry/m-p/345603#M41755</link>
    <description>&lt;P&gt;Hi thanks!&lt;/P&gt;

&lt;P&gt;Actually I found more to this, so there is a different column I need to base this on "create_date".  So I think you are on the right track so something like this:&lt;BR /&gt;
index=main sourcetype=trims_tblXUsersRoles_audit xcomp_access_role_id=3 create_date="" | stats values(user_id) as userID by Action_date,Action,xcomp_access_role_id,create_login,create_date&lt;/P&gt;

&lt;P&gt;What can I do with the "create_date" to pickup the newest creation date when this job runs every 5mins?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:11:01 GMT</pubDate>
    <dc:creator>cjs1031</dc:creator>
    <dc:date>2020-09-29T13:11:01Z</dc:date>
    <item>
      <title>How to generate an alert based on new database table entry?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-generate-an-alert-based-on-new-database-table-entry/m-p/345601#M41753</link>
      <description>&lt;P&gt;I am new to Splunk, very green. I have a DB search that I need to run and I have the search string I need but when I setup an alert, the alert is checking the results and sending them all to me. Basically, each time a new entry hits that table I need it to send me an email with just the new entrie(s). I imagine this is very simple to do but again, I am green. Here is my string.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=trims_tblXUsersRoles_audit xcomp_access_role_id=3 | stats values(user_id) as userID by Action_date,Action,xcomp_access_role_id,create_login
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Mar 2017 18:59:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-generate-an-alert-based-on-new-database-table-entry/m-p/345601#M41753</guid>
      <dc:creator>cjs1031</dc:creator>
      <dc:date>2017-03-10T18:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate an alert based on new database table entry?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-generate-an-alert-based-on-new-database-table-entry/m-p/345602#M41754</link>
      <description>&lt;P&gt;Trying specifying a timerange either in your query syntax, then schedule the search to run every hour:&lt;/P&gt;

&lt;P&gt;e.g. &lt;BR /&gt;
index=main sourcetype=trims_tblXUsersRoles_audit xcomp_access_role_id=3 &lt;STRONG&gt;earliest=-1h latest=now&lt;/STRONG&gt; | stats values(user_id) as userID by Action_date,Action,xcomp_access_role_id,create_login&lt;/P&gt;

&lt;P&gt;In configuration, set the alert to email when there are greater than 0 events.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:10:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-generate-an-alert-based-on-new-database-table-entry/m-p/345602#M41754</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2020-09-29T13:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate an alert based on new database table entry?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-generate-an-alert-based-on-new-database-table-entry/m-p/345603#M41755</link>
      <description>&lt;P&gt;Hi thanks!&lt;/P&gt;

&lt;P&gt;Actually I found more to this, so there is a different column I need to base this on "create_date".  So I think you are on the right track so something like this:&lt;BR /&gt;
index=main sourcetype=trims_tblXUsersRoles_audit xcomp_access_role_id=3 create_date="" | stats values(user_id) as userID by Action_date,Action,xcomp_access_role_id,create_login,create_date&lt;/P&gt;

&lt;P&gt;What can I do with the "create_date" to pickup the newest creation date when this job runs every 5mins?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:11:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-generate-an-alert-based-on-new-database-table-entry/m-p/345603#M41755</guid>
      <dc:creator>cjs1031</dc:creator>
      <dc:date>2020-09-29T13:11:01Z</dc:date>
    </item>
  </channel>
</rss>

