<?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 Find failed job reason in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Find-failed-job-reason/m-p/559610#M6412</link>
    <description>&lt;P&gt;I want to see any failed job, ad-hoc and scheduled. For instance, I was creating a new search command, and it failed a lot until I got it right. I expect to see the same error, I see in web search, in the logs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;U&gt;| rest /servicesNS/-/-/search/jobs&lt;/U&gt; shows a handful over 4 hours. There was far more than that.&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;_audit&lt;/U&gt; shows plenty of failed searches, but not the reason&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;_internal&lt;/U&gt; doesn't show anything useful&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 15 Jul 2021 15:00:07 GMT</pubDate>
    <dc:creator>tmontney</dc:creator>
    <dc:date>2021-07-15T15:00:07Z</dc:date>
    <item>
      <title>Find failed job reason</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Find-failed-job-reason/m-p/559610#M6412</link>
      <description>&lt;P&gt;I want to see any failed job, ad-hoc and scheduled. For instance, I was creating a new search command, and it failed a lot until I got it right. I expect to see the same error, I see in web search, in the logs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;U&gt;| rest /servicesNS/-/-/search/jobs&lt;/U&gt; shows a handful over 4 hours. There was far more than that.&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;_audit&lt;/U&gt; shows plenty of failed searches, but not the reason&lt;/LI&gt;&lt;LI&gt;&lt;U&gt;_internal&lt;/U&gt; doesn't show anything useful&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:00:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Find-failed-job-reason/m-p/559610#M6412</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2021-07-15T15:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find failed job reason</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Find-failed-job-reason/m-p/559627#M6413</link>
      <description>&lt;P&gt;Use the Job Inspector.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Search/ViewsearchjobpropertieswiththeJobInspector" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Search/ViewsearchjobpropertieswiththeJobInspector&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Find-failed-job-reason/m-p/559627#M6413</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-07-15T15:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find failed job reason</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Find-failed-job-reason/m-p/559669#M6418</link>
      <description>&lt;P&gt;After posting, I ended up with this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /servicesNS/-/-/search/jobs
| eval t=strptime(updated, "%Y-%m-%dT%H:%M:%S.%f-%z")
| where 
    [ makeresults 
    | addinfo
    | eval search=" t &amp;gt;= ". info_min_time. if(info_max_time=="+Infinity",""," AND t &amp;lt;= ".info_max_time) ]
| eval hadError=case(isFailed=1, 1, isNotNull('messages.error'), 1, 1=1, 0)
| search hadError=1
| stats count&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Jul 2021 18:44:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Find-failed-job-reason/m-p/559669#M6418</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2021-07-15T18:44:08Z</dc:date>
    </item>
  </channel>
</rss>

