<?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 set alert when database inputs is not working? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-set-alert-when-database-inputs-is-not-working/m-p/353645#M11973</link>
    <description>&lt;P&gt;If you're indexing your dbx logs (dbx.log for DB Connect v1, dbx2.log for DB Connect v2, not sure about v3), you should be able to find logs pertaining to your data input (definition loaded, execution started/finished events). Based on frequency of your input and average execution time, you can setup appropriate alert when you don't see a finished event.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 04:05:30 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-03-24T04:05:30Z</dc:date>
    <item>
      <title>How to set alert when database inputs is not working?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-alert-when-database-inputs-is-not-working/m-p/353642#M11970</link>
      <description>&lt;P&gt;In database inputs i created one data inputs and set query and rising coloumn as time and i am  getting result from database .some times the data inputs is not working .so how to set manual alert when data inputs is not working &lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 03:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-alert-when-database-inputs-is-not-working/m-p/353642#M11970</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2017-03-14T03:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to set alert when database inputs is not working?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-alert-when-database-inputs-is-not-working/m-p/353643#M11971</link>
      <description>&lt;P&gt;do you see any errors in index = _internal when the input is not working?&lt;BR /&gt;
some fast and dirty way to alert on it is just run the search index =  | stats count | bin span= _time &lt;BR /&gt;
set an alert if count  = 0 &lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 02:24:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-alert-when-database-inputs-is-not-working/m-p/353643#M11971</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-03-24T02:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to set alert when database inputs is not working?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-alert-when-database-inputs-is-not-working/m-p/353644#M11972</link>
      <description>&lt;P&gt;Check out the dbx health &amp;gt; Input metrics dashboard in DBX3. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/DBX/3.0.2/DeployDBX/Monitordatabaseconnectionhealth" target="_blank"&gt;http://docs.splunk.com/Documentation/DBX/3.0.2/DeployDBX/Monitordatabaseconnectionhealth&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;This one is very useful &amp;gt;&amp;gt; &lt;CODE&gt;index=_internal sourcetype = dbx_job_metrics | table connection, name, record_read_success_count, status, start_time, end_time, duration&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;if you are using an older version, see appropriate docs, but the idea would be the same.&lt;A href="https://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Troubleshooting" target="_blank"&gt;https://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Troubleshooting&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regardless of the version, check the _internal sourcetype for appropriate logging to determine all is well, then use something like meta woot which has this beauty tstats search &lt;CODE&gt;| tstats count min(_time) as firstTime, max(_time) as lastTime, max(_indextime) as recentTime where _index_earliest=-10m@m _index_latest=-5m@m  by host, sourcetype, index &lt;BR /&gt;
| eval host=lower(host) &lt;BR /&gt;
| eval _time=now()-300&lt;/CODE&gt; to check for event trend and alert on no/low events counts or, to calculate last indexed event time compared to now...and if that time creeps too long...alert...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/2949/" target="_blank"&gt;https://splunkbase.splunk.com/app/2949/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Once you get the search that gives you the indicator you trust, save it as an alert:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/Alert/Aboutalerts" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/Alert/Aboutalerts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:23:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-alert-when-database-inputs-is-not-working/m-p/353644#M11972</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2020-09-29T13:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set alert when database inputs is not working?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-set-alert-when-database-inputs-is-not-working/m-p/353645#M11973</link>
      <description>&lt;P&gt;If you're indexing your dbx logs (dbx.log for DB Connect v1, dbx2.log for DB Connect v2, not sure about v3), you should be able to find logs pertaining to your data input (definition loaded, execution started/finished events). Based on frequency of your input and average execution time, you can setup appropriate alert when you don't see a finished event.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 04:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-set-alert-when-database-inputs-is-not-working/m-p/353645#M11973</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-24T04:05:30Z</dc:date>
    </item>
  </channel>
</rss>

