<?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 OR Search latest results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699545#M237469</link>
    <description>&lt;P&gt;I have a search that links problem and problem task tables with a scenario that gives unexpected results&lt;BR /&gt;&lt;BR /&gt;My search brings back the latest ptasks against the problem but I have identified some tasks that were closed as duplicate after the last update on the active tasks&lt;BR /&gt;&lt;BR /&gt;(`servicenow` sourcetype="problem" latest=@mon) OR (`servicenow` sourcetype="problem_task" latest=@mon dv_u_review_type="On Hold")&lt;BR /&gt;| eval problem=if(sourcetype="problem",number,dv_problem)&lt;BR /&gt;| stats values(eval(if(sourcetype="problem_task",number,null()))) as number, latest(eval(if(sourcetype="problem_task",active,null()))) as task_active, latest(eval(if(sourcetype="problem_task", dv_u_review_type,null()))) as dv_u_review_type, latest(eval(if(sourcetype="problem_task",dv_due_date,null()))) as task_due, latest(eval(if(sourcetype="problem",dv_opened_at,null()))) as prb_opened, latest(eval(if(sourcetype="problem",dv_active,null()))) as prb_active by problem&lt;BR /&gt;| fields problem, number, task_active, dv_u_review_type, task_due, prb_opened, prb_active&lt;BR /&gt;| where problem!=""&lt;BR /&gt;&lt;BR /&gt;Is it possible to mark an event that is closed as out of scope then disclude all the events of the same number?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2024 10:15:34 GMT</pubDate>
    <dc:creator>DonBaldini</dc:creator>
    <dc:date>2024-09-19T10:15:34Z</dc:date>
    <item>
      <title>OR Search latest results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699545#M237469</link>
      <description>&lt;P&gt;I have a search that links problem and problem task tables with a scenario that gives unexpected results&lt;BR /&gt;&lt;BR /&gt;My search brings back the latest ptasks against the problem but I have identified some tasks that were closed as duplicate after the last update on the active tasks&lt;BR /&gt;&lt;BR /&gt;(`servicenow` sourcetype="problem" latest=@mon) OR (`servicenow` sourcetype="problem_task" latest=@mon dv_u_review_type="On Hold")&lt;BR /&gt;| eval problem=if(sourcetype="problem",number,dv_problem)&lt;BR /&gt;| stats values(eval(if(sourcetype="problem_task",number,null()))) as number, latest(eval(if(sourcetype="problem_task",active,null()))) as task_active, latest(eval(if(sourcetype="problem_task", dv_u_review_type,null()))) as dv_u_review_type, latest(eval(if(sourcetype="problem_task",dv_due_date,null()))) as task_due, latest(eval(if(sourcetype="problem",dv_opened_at,null()))) as prb_opened, latest(eval(if(sourcetype="problem",dv_active,null()))) as prb_active by problem&lt;BR /&gt;| fields problem, number, task_active, dv_u_review_type, task_due, prb_opened, prb_active&lt;BR /&gt;| where problem!=""&lt;BR /&gt;&lt;BR /&gt;Is it possible to mark an event that is closed as out of scope then disclude all the events of the same number?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 10:15:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699545#M237469</guid>
      <dc:creator>DonBaldini</dc:creator>
      <dc:date>2024-09-19T10:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: OR Search latest results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699578#M237485</link>
      <description>&lt;P&gt;Do you wanna filter out some events based on the results that are produced by our shared search? Would be great if you could clarify the expected outcome.&lt;/P&gt;&lt;P&gt;Furthermore please provide some sample data.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 13:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699578#M237485</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2024-09-19T13:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: OR Search latest results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699580#M237486</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DonBaldini_0-1726753005454.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32715iDFEC6DBDD3DED652/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DonBaldini_0-1726753005454.png" alt="DonBaldini_0-1726753005454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Yes, so the results that are coming back are the latest events from the ptasks marked red, I'd want to omit all events related to these so the latest events from the green task are populated in my results&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 13:38:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699580#M237486</guid>
      <dc:creator>DonBaldini</dc:creator>
      <dc:date>2024-09-19T13:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: OR Search latest results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699584#M237487</link>
      <description>&lt;P&gt;Sorry, still not clear for me how the expected outcome should look like.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 13:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699584#M237487</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2024-09-19T13:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: OR Search latest results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699588#M237488</link>
      <description>&lt;P&gt;I dont want any of the events for a ptask where there is result of task_active=false&lt;BR /&gt;&lt;BR /&gt;I can't just do a search for task_active=true because it just brings back events from when the ptasks that are now task_active=false from when they were previously true&lt;/P&gt;&lt;P&gt;I was thinking of a solution of having a marker before I did the stats latest&lt;BR /&gt;| eval OutOfScope=if(task_active="false",1,0)&lt;/P&gt;&lt;P&gt;then I'd need something to say if for number if one event is OutOfScope=1 then all events for that ptask number are OutOfScope=1&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 14:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699588#M237488</guid>
      <dc:creator>DonBaldini</dc:creator>
      <dc:date>2024-09-19T14:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: OR Search latest results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699590#M237490</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Please try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;(`servicenow` sourcetype="problem" latest=@mon) OR (`servicenow` sourcetype="problem_task" latest=@mon dv_u_review_type="On Hold")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval problem=if(sourcetype="problem",number,dv_problem)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats values(eval(if(sourcetype="problem_task",number,null()))) as number, latest(eval(if(sourcetype="problem_task",active,null()))) as task_active, latest(eval(if(sourcetype="problem_task", dv_u_review_type,null()))) as dv_u_review_type, latest(eval(if(sourcetype="problem_task",dv_due_date,null()))) as task_due, latest(eval(if(sourcetype="problem",dv_opened_at,null()))) as prb_opened, latest(eval(if(sourcetype="problem",dv_active,null()))) as prb_active by problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| fields problem, number, task_active, dv_u_review_type, task_due, prb_opened, prb_active&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| search problem!="" AND task_active!=false&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Sep 2024 14:06:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699590#M237490</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2024-09-19T14:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: OR Search latest results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699593#M237491</link>
      <description>&lt;P&gt;I need to omit all events for a ptask that is now task_active=false, not just the latest event, this is why I need to do something before the stats latest.&lt;BR /&gt;&lt;BR /&gt;If I do stats values instead of stats latest I want the green events but the red events are causing issues with my data as they were more recent. Not sure if you saw my previous post but I was hoping there would be a way to put an out of scope marker throughout all the unwanted events&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DonBaldini_0-1726755149945.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32716i5E126E14BD7689E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DonBaldini_0-1726755149945.png" alt="DonBaldini_0-1726755149945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 14:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699593#M237491</guid>
      <dc:creator>DonBaldini</dc:creator>
      <dc:date>2024-09-19T14:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: OR Search latest results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699608#M237501</link>
      <description>&lt;P&gt;Please share the raw events from the shared example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 15:29:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/OR-Search-latest-results/m-p/699608#M237501</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2024-09-19T15:29:57Z</dc:date>
    </item>
  </channel>
</rss>

