<?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: Monitor Job  in Dashboard in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633028#M15563</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;I guess we can accept Answer only once per post! Anyway Thank You &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 15:21:55 GMT</pubDate>
    <dc:creator>Ashwini008</dc:creator>
    <dc:date>2023-03-02T15:21:55Z</dc:date>
    <item>
      <title>How can I Monitor Jobs only at a specific interval in Dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/632969#M15550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need to monitor jobs only at specific interval .From Application server we are getting only Job Name And Date of Job generated into Splunk.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;Job will only run between 9:30 PM -10:30&amp;nbsp; so Splunk will have data only after 9:30 PM so up to 9:30 PM dashboard will be showing as 'Job has not run' which is incorrect. I need to check only between 9:30 PM -10:30 PM and if there is no data in Index then show as "Job has not run"&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;
&lt;P&gt;query:index = test_job&lt;BR /&gt;sourcetype = test_job&lt;BR /&gt;| rex field=source ".*/(?&amp;lt;name&amp;gt;.*?)_(?&amp;lt;date&amp;gt;.*)\."&lt;BR /&gt;| eval DATE=strftime(strptime(date,"%m%d%Y_%I.%M.%S.%p"),"%m-%d-%Y %I:%M:%S %p")&lt;BR /&gt;| rename name as JobName&lt;BR /&gt;| table JobName DATE&lt;BR /&gt;| append&lt;BR /&gt;[| inputlookup job.csv&lt;BR /&gt;| search NOT&lt;BR /&gt;[ search index = test_job&lt;BR /&gt;sourcetype = test_job&lt;BR /&gt;| rex field=source ".*/(?&amp;lt;name&amp;gt;.*?)_(?&amp;lt;date&amp;gt;.*)\."&lt;BR /&gt;| eval DATE=strftime(strptime(date,"%m%d%Y_%I.%M.%S.%p"),"%m-%d-%Y %I:%M:%S %p")&lt;BR /&gt;| rename name as JobName&lt;BR /&gt;| table JobName ]]&lt;BR /&gt;| fillnull value="N" DATE&lt;BR /&gt;| eval DATE=if(DATE="N","Job has not run", DATE)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 15:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/632969#M15550</guid>
      <dc:creator>Ashwini008</dc:creator>
      <dc:date>2023-03-02T15:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Job  in Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/632978#M15552</link>
      <description>&lt;P&gt;Not sure what the question is here - your search seems to append all the jobs from the csv which don't have entries in the time period of the search (although it could be optimised slightly since you are doing some date manipulation and then dropping the date field, and also filling the null dates with "N" only to replace it with "Job has not run"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = test_job
sourcetype = test_job
| rex field=source ".*/(?&amp;lt;name&amp;gt;.*?)_(?&amp;lt;date&amp;gt;.*)\."
| eval DATE=strftime(strptime(date,"%m%d%Y_%I.%M.%S.%p"),"%m-%d-%Y %I:%M:%S %p")
| rename name as JobName
| table JobName DATE
| append
[| inputlookup job.csv
| search NOT
[ search index = test_job
sourcetype = test_job
| rex field=source ".*/(?&amp;lt;JobName&amp;gt;.*?)_.*\."
| table JobName 
| dedup JobName]]
| fillnull value="Job has not run" DATE&lt;/LI-CODE&gt;&lt;P&gt;Is the issue that job.csv does not include the expected times which the jobs should have been run between?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 11:53:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/632978#M15552</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-02T11:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Job  in Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/632990#M15554</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;I need to monitor Jobs only at specific interval in dashboard. From source i am extracting job name and Timestamp of file generated. This Job generates&amp;nbsp; anywhere between 9:30PM IST- 10:30PM IST . My below query is not checking for any time interval so before 9:30 PM also it is running the query and showing as "Job has not run". I need to check and run the query only after 9:30 PM and before that it should not run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 15:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/632990#M15554</guid>
      <dc:creator>Ashwini008</dc:creator>
      <dc:date>2023-03-02T15:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Job  in Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/632991#M15555</link>
      <description>&lt;P&gt;So if I understand correctly, the report / dashboard search can be executed at any time but you want it ignore the fact that some jobs haven't been run (yet) if the time the job is executed is not between 9:30 and 10:30?&lt;/P&gt;&lt;P&gt;If so, how does the search know which jobs should be run in which timeframes?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 12:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/632991#M15555</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-02T12:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Job  in Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633011#M15558</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;That's correct. That is the challenge i am facing on how to check only specific jobs at specific interval. Can we write a query to check the condition only between 9:30 PM to 10: 30 PM&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 14:39:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633011#M15558</guid>
      <dc:creator>Ashwini008</dc:creator>
      <dc:date>2023-03-02T14:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Job  in Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633014#M15559</link>
      <description>&lt;P&gt;You could force your search to only return results (if there are any) when it is between certain times&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where now()&amp;gt;relative_time(now(),"@d+21h+30m") AND now()&amp;lt;relative_time(now(),"@d+22h+30m")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Mar 2023 14:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633014#M15559</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-02T14:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Job  in Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633022#M15560</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thank You how do i exclude weekends from the query?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 15:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633022#M15560</guid>
      <dc:creator>Ashwini008</dc:creator>
      <dc:date>2023-03-02T15:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Job  in Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633024#M15561</link>
      <description>&lt;LI-CODE lang="markup"&gt;| where now()&amp;gt;relative_time(now(),"@d+21h+30m") AND now()&amp;lt;relative_time(now(),"@d+22h+30m") AND now()&amp;gt;relative_time(now(),"@w+1d") AND now()&amp;lt;relative_time(now(),"@w+6d")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Mar 2023 15:16:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633024#M15561</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-02T15:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Job  in Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633028#M15563</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;I guess we can accept Answer only once per post! Anyway Thank You &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 15:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-Monitor-Jobs-only-at-a-specific-interval-in-Dashboard/m-p/633028#M15563</guid>
      <dc:creator>Ashwini008</dc:creator>
      <dc:date>2023-03-02T15:21:55Z</dc:date>
    </item>
  </channel>
</rss>

