<?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 display procedures that don't have events as failures? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/535213#M151272</link>
    <description>&lt;P&gt;Finding something that is not there is not Splunk's strong suit.&amp;nbsp; See this blog entry for a good write-up on it.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.duanewaddle.com/proving-a-negative/" target="_blank"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 15:14:53 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-01-08T15:14:53Z</dc:date>
    <item>
      <title>How to display procedures that don't have events as failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/535189#M151271</link>
      <description>&lt;P&gt;Hello good people of the splunk community. I'm fairly new to splunk so sorry if this is a newb question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a search that retrieves only events with certain field values in the Procedure_Name or Process_Name fields, groups them by our scheduling cycle, and displays which procedures/processes failed (indicated by activity code not being 2000):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=app host=myhost sourcetype=mysourcetype) OR (index=myindex source=mysource) earliest=-1w@w latest=now 
| where Process_Name IN ("Process1","Process2","Process3"..."Process26") 
OR
Procedure_Name IN ("Procedure1","Procedure2","Procedure3"..."Procedure26")) 
| fields Procedure_Name,Process_Name,Activity_Code, UpdatedDate
| eval Procedure_Name=coalesce(Process_Name, Procedure_Name)
| eval update = strptime( UpdatedDate, "%Y-%m-%d %H:%M:%S")
| eval Day = relative_time(update,"@d") - if((tonumber(strftime(update, "%H%M")) &amp;lt; 1400),  (24*60*60), 0)
| dedup Procedure_Name Day
| stats count(eval(Activity_Code = "2000")) as Success_Count, values(eval(if(Activity_Code !="2000", Procedure_Name,null()))) as Failures, values(Procedure_Name) as AllProcedures, values(UpdatedDate) as UpdatedDate,  count as Procedure_Count by Day
| eval Success_Percent = round(((Success_Count/Procedure_Count)*100),2)
| sort - Day
| eval Day = strftime(Day, "%F")
| table Day, Success_Count, Procedure_Count, Success_Percent, Failures, AllProcedures,UpdatedDate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The process and procedure lists I'm checking for are actually identical, so Process1 is the same as Procedure1, Process6=Procedure6, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I want to account for procedures/processes that failed to run at all since we consider that a failure too. But because they didn't run there are no events for them. Is there some way to compare my list of procedures/processes that should be there to the list that's actually there(AllProcedures) and add the difference to my failures list or another list like "FailedToRun"?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 13:47:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/535189#M151271</guid>
      <dc:creator>SteveChai427</dc:creator>
      <dc:date>2021-01-08T13:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to display procedures that don't have events as failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/535213#M151272</link>
      <description>&lt;P&gt;Finding something that is not there is not Splunk's strong suit.&amp;nbsp; See this blog entry for a good write-up on it.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.duanewaddle.com/proving-a-negative/" target="_blank"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 15:14:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/535213#M151272</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-08T15:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to display procedures that don't have events as failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/535220#M151273</link>
      <description>&lt;P&gt;I'll try what's in that article and see if that does the trick. I had a feeling I'd need to do a lookup table but I don't have permissions to make one so it's a little cumbersome.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 15:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/535220#M151273</guid>
      <dc:creator>SteveChai427</dc:creator>
      <dc:date>2021-01-08T15:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to display procedures that don't have events as failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/535917#M151488</link>
      <description>&lt;P&gt;Hello, I'm the same person but I had to get a new account. My lookup table is up and I am able to pull data from it. It's arranged like this:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%"&gt;1.0 Procedures&lt;/TD&gt;&lt;TD width="25%"&gt;2.0_A_Procedures&lt;/TD&gt;&lt;TD width="25%"&gt;2.0_B_PRocedures&lt;/TD&gt;&lt;TD width="25%"&gt;3.0_Procedures&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%"&gt;*various procedures*&lt;/TD&gt;&lt;TD width="25%"&gt;*various procedures*&lt;/TD&gt;&lt;TD width="25%"&gt;*various procedures*&lt;/TD&gt;&lt;TD width="25%"&gt;*various procedures*&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My different searches are only concerned with one column each. So the search above is only concerned with the 1.0_Procedures column but other searches use the other columns. I want to add the events that are absent from splunk but present in the lookup table to the failures field. So something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;values(eval(if(Activity_Code !="2000" OR Procedure_Name NOT [|inputlookup chubDashboardProcedures.csv | fields 1.0_Procedures | rename 1.0_Procedures as search|format "" "(" "" ")" "OR" ""], Procedure_Name,null()))) as Failures&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Except I get a quote/parenthesis mismatch error with that. Is there any way to do that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 21:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/535917#M151488</guid>
      <dc:creator>schilds427</dc:creator>
      <dc:date>2021-01-14T21:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to display procedures that don't have events as failures?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/536026#M151536</link>
      <description>&lt;P&gt;Try using the &lt;FONT face="courier new,courier"&gt;format&lt;/FONT&gt; command without arguments - the extra parentheses shouldn't affect the results.&amp;nbsp; If that doesn't work, try &lt;FONT face="courier new,courier"&gt;" "&lt;/FONT&gt; instead of &lt;FONT face="courier new,courier"&gt;""&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 15:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-procedures-that-don-t-have-events-as-failures/m-p/536026#M151536</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-15T15:43:04Z</dc:date>
    </item>
  </channel>
</rss>

