<?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: Create alert for delayed files every hour in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618858#M106748</link>
    <description>&lt;P&gt;Missing sources are getting populated based on required sources . They are not showing full log name which uses wildcard&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 00:46:31 GMT</pubDate>
    <dc:creator>Chinni611</dc:creator>
    <dc:date>2022-10-31T00:46:31Z</dc:date>
    <item>
      <title>Create alert for delayed files every hour?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618483#M106716</link>
      <description>&lt;P&gt;hi , I have the below query. Index=Config source =“Java/path/ log.csv” inbound&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Csv files are supposed to be delivered on a hourly basis before hour past 13 minutes ( eg : file delivered time is 12:12minutes) . I need to create an alert if any of the files are delivered after 13minutes every hour . (12:14 minutes ) - create alert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 00:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618483#M106716</guid>
      <dc:creator>Chinni611</dc:creator>
      <dc:date>2022-10-27T00:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for delayed files every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618487#M106719</link>
      <description>&lt;P&gt;So set up the search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=Config source="Java/path/log.csv" inbound
| stats count&lt;/LI-CODE&gt;&lt;P&gt;save as an alert and set the trigger alert to custom and set the custom string to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;search count=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and set the cron schedule to be 14 * * * * and the time window to be earliest is&amp;nbsp;@h and latest now&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 22:13:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618487#M106719</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-26T22:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for delayed files every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618490#M106720</link>
      <description>&lt;P&gt;Hi , thanks for reply . I have 4 hourly files like that and count returns 4 files at each hour I need to alert if anyone of them are getting delayed . So what should be my trigger condition and alert should go every hour past 13 minutes if file is missing .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 22:24:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618490#M106720</guid>
      <dc:creator>Chinni611</dc:creator>
      <dc:date>2022-10-26T22:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for delayed files every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618508#M106723</link>
      <description>&lt;P&gt;Assuming your different log file is in source field, you could do&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=Config source IN (Log1, Log2, Log3, Log4) inbound
| stats dc(source) as sources&lt;/LI-CODE&gt;&lt;P&gt;and then check for sources &amp;lt; 4&lt;/P&gt;&lt;P&gt;of you could do something like this to detect the missing source&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=Config source IN (Log1, Log2, Log3, Log4) inbound
| stats values(source) as foundSources dc(source) as sources
| where sources&amp;lt;4
| eval requiredSources=split("Log1,Log2,Log3,Log4", ",")
| eval missingSources=mvmap(requiredSources, if(isnull(mvfind(foundSources, requiredSources)), requiredSources, null()))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and then just raise the alert with a standard trigger with the count of values greater than zero, as it will now contain the name of the missing source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 00:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618508#M106723</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-27T00:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for delayed files every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618856#M106746</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp; , thanks for your reply&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;index=Config source IN (Log1, Log2, Log3, Log4) inbound
| stats values(source) as foundSources dc(source) as sources
| where sources&amp;lt;4
| eval requiredSources=split("Log1,Log2,Log3,Log4", ",")
| eval missingSources=mvmap(requiredSources, if(isnull(mvfind(foundSources, requiredSources)), requiredSources, null()))&lt;/PRE&gt;&lt;P&gt;I need to use Log1*,Log2* wild card entry with eval in required sources to get the missing sources. Can you please help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 00:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618856#M106746</guid>
      <dc:creator>Chinni611</dc:creator>
      <dc:date>2022-10-31T00:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for delayed files every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618857#M106747</link>
      <description>&lt;P&gt;mvfind is using a regex, so if you just add the * on the IN search statement&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=Config source IN (Log1*, Log2*, Log3*, Log4*) inbound
| stats values(source) as foundSources dc(source) as sources
| where sources&amp;lt;4
| eval requiredSources=split("Log1,Log2,Log3,Log4", ",")
| eval missingSources=mvmap(requiredSources, if(isnull(mvfind(foundSources, requiredSources)), requiredSources, null()))&lt;/LI-CODE&gt;&lt;P&gt;the mvfind will be doing the following&lt;/P&gt;&lt;P&gt;mvfind("Log1foundvalue99", "Log1")&lt;/P&gt;&lt;P&gt;which will be true, so should work anyway. Is there something that is not working? If so, please share what you are searching for and the results&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 00:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618857#M106747</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-31T00:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for delayed files every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618858#M106748</link>
      <description>&lt;P&gt;Missing sources are getting populated based on required sources . They are not showing full log name which uses wildcard&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 00:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618858#M106748</guid>
      <dc:creator>Chinni611</dc:creator>
      <dc:date>2022-10-31T00:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create alert for delayed files every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618863#M106749</link>
      <description>&lt;P&gt;Please give more detail - SPL/data/results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 04:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-alert-for-delayed-files-every-hour/m-p/618863#M106749</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-31T04:13:05Z</dc:date>
    </item>
  </channel>
</rss>

