<?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: Sourcetype not reporting in Splunk query in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-not-reporting-in-Splunk-query/m-p/536658#M89958</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207926"&gt;@anandhalagaras1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You already have what you need basically.&lt;BR /&gt;&lt;BR /&gt;Go to settings -&amp;gt; Sarch, Reports and Alerts, click "new Alert" in top right.&lt;BR /&gt;&lt;BR /&gt;As &lt;STRONG&gt;search&lt;/STRONG&gt; you would put in for example&amp;nbsp;&lt;EM&gt;index=windows sourcetype=dns&lt;BR /&gt;&lt;/EM&gt;Make sure &lt;STRONG&gt;Alert Type&lt;/STRONG&gt; is set to "&lt;EM&gt;Scheduled&lt;/EM&gt;" and select "&lt;EM&gt;Run on Cron Schedule&lt;/EM&gt;"&amp;nbsp;&lt;BR /&gt;Use this &lt;STRONG&gt;Cron Expression&lt;/STRONG&gt;&amp;nbsp; */15 * * * *&amp;nbsp; (run every 15th minute).&lt;BR /&gt;As &lt;STRONG&gt;Time Range&lt;/STRONG&gt; select "Last 15 Minutes".&lt;BR /&gt;As &lt;STRONG&gt;Trigger Condition&lt;/STRONG&gt; set: "&lt;EM&gt;Number of Results&lt;/EM&gt;" and "&lt;EM&gt;is equal t&lt;/EM&gt;o " &lt;STRONG&gt;0&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;At the bottom you can configure the kind of alert action you need (email, webhook posting, call the police...)&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;&lt;BR /&gt;Edit:&amp;nbsp; Instead of returning all the Events, it would be better (from a performance/ressource usage pov) to run a stats command like:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;index=windows sourcetype=dns &lt;STRONG&gt;| stats count&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;And&amp;nbsp; alert based on the count field.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;So, once you have the alerting running, this would be a good point to optimize it.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 10:39:23 GMT</pubDate>
    <dc:creator>rnowitzki</dc:creator>
    <dc:date>2021-01-21T10:39:23Z</dc:date>
    <item>
      <title>Sourcetype not reporting in Splunk query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-not-reporting-in-Splunk-query/m-p/536624#M89950</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;We have a requirement that is I have few of the sourcetypes configured from our end which contains very important logs. So if there are no logs from those particular sourcetypes then we need to get an alert for the same. So how should we need to configure the alert.&lt;/P&gt;&lt;P&gt;Hence kindly guide me with the search query for the same. i.e. The condition is that the search query would be running for every 15 minutes and it should trigger an alert if any of these sourcetypes are not sending logs to splunk for every 15 minutes.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;index= windows sourcetype=dns&lt;/P&gt;&lt;P&gt;index=firewall sourcetype=syslog&lt;/P&gt;&lt;P&gt;index=os sourcetype=top etc.&lt;/P&gt;&lt;P&gt;So kindly help me with the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 06:50:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-not-reporting-in-Splunk-query/m-p/536624#M89950</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-01-21T06:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetype not reporting in Splunk query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-not-reporting-in-Splunk-query/m-p/536658#M89958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207926"&gt;@anandhalagaras1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You already have what you need basically.&lt;BR /&gt;&lt;BR /&gt;Go to settings -&amp;gt; Sarch, Reports and Alerts, click "new Alert" in top right.&lt;BR /&gt;&lt;BR /&gt;As &lt;STRONG&gt;search&lt;/STRONG&gt; you would put in for example&amp;nbsp;&lt;EM&gt;index=windows sourcetype=dns&lt;BR /&gt;&lt;/EM&gt;Make sure &lt;STRONG&gt;Alert Type&lt;/STRONG&gt; is set to "&lt;EM&gt;Scheduled&lt;/EM&gt;" and select "&lt;EM&gt;Run on Cron Schedule&lt;/EM&gt;"&amp;nbsp;&lt;BR /&gt;Use this &lt;STRONG&gt;Cron Expression&lt;/STRONG&gt;&amp;nbsp; */15 * * * *&amp;nbsp; (run every 15th minute).&lt;BR /&gt;As &lt;STRONG&gt;Time Range&lt;/STRONG&gt; select "Last 15 Minutes".&lt;BR /&gt;As &lt;STRONG&gt;Trigger Condition&lt;/STRONG&gt; set: "&lt;EM&gt;Number of Results&lt;/EM&gt;" and "&lt;EM&gt;is equal t&lt;/EM&gt;o " &lt;STRONG&gt;0&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;At the bottom you can configure the kind of alert action you need (email, webhook posting, call the police...)&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;&lt;BR /&gt;Edit:&amp;nbsp; Instead of returning all the Events, it would be better (from a performance/ressource usage pov) to run a stats command like:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;index=windows sourcetype=dns &lt;STRONG&gt;| stats count&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;And&amp;nbsp; alert based on the count field.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;So, once you have the alerting running, this would be a good point to optimize it.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 10:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetype-not-reporting-in-Splunk-query/m-p/536658#M89958</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2021-01-21T10:39:23Z</dc:date>
    </item>
  </channel>
</rss>

