<?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 Matching Results of a Search on One Value - Based on the Results of Two Events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Matching-Results-of-a-Search-on-One-Value-Based-on-the-Results/m-p/545498#M154522</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to configure alerting for a Failover Cluster by verifying the running server name, then confirming that the windows services on said server is running as expected.&amp;nbsp; We have two servers in the cluster that could change anytime, where the one that is active should always have the windows services running (and alert if they are not and it is the active host) and the passive server should have the services stopped (expected, no alert).&lt;/P&gt;&lt;P&gt;The two WMI events that I have running on the two hosts are below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This event shows the active failover server:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Server&lt;/STRONG&gt;=Server1&lt;BR /&gt;ComputerName=Cluster&lt;BR /&gt;wmi_type=PIAnalysisCluster&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The below events shows the Windows Service events on either host:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Caption=Cluster Service&lt;BR /&gt;DisplayName=Cluster Service&lt;BR /&gt;Name=ClusSvc&lt;BR /&gt;ProcessId=3192&lt;BR /&gt;StartName=LocalSystem&lt;BR /&gt;State=Running&lt;BR /&gt;Status=OK&lt;BR /&gt;&lt;STRONG&gt;SystemName&lt;/STRONG&gt;=Server1&lt;BR /&gt;wmi_type=ClusterService&lt;/P&gt;&lt;P&gt;20210325160700.359614&lt;BR /&gt;Caption=Cluster Service&lt;BR /&gt;DisplayName=Cluster Service&lt;BR /&gt;Name=ClusSvc&lt;BR /&gt;ProcessId=3040&lt;BR /&gt;StartName=LocalSystem&lt;BR /&gt;State=Running&lt;BR /&gt;Status=OK&lt;BR /&gt;&lt;STRONG&gt;SystemName&lt;/STRONG&gt;=Server2&lt;BR /&gt;wmi_type=ClusterService&lt;BR /&gt;&lt;BR /&gt;What i am trying to do is just show where Server=Server1 is active, then show &lt;EM&gt;just&lt;/EM&gt; the status of the Windows Server from SystemName=Server1. I've tried with "eval Server=coalesce(SystemName,Server)", evals on match (Server==SystemName) as well "where Server=SystemName", but I have been unable to find a way to just show the active server based on the first event, and match the server name based on the second event with the status of the Windows Service.&lt;/P&gt;&lt;P&gt;Example attached of what the data looks like without attempting to join the values.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Razziq_0-1616715820198.png" style="width: 785px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13501i7C664780CB384A18/image-dimensions/785x199?v=v2" width="785" height="199" role="button" title="Razziq_0-1616715820198.png" alt="Razziq_0-1616715820198.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Mar 2021 23:43:54 GMT</pubDate>
    <dc:creator>Razziq</dc:creator>
    <dc:date>2021-03-25T23:43:54Z</dc:date>
    <item>
      <title>Matching Results of a Search on One Value - Based on the Results of Two Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-Results-of-a-Search-on-One-Value-Based-on-the-Results/m-p/545498#M154522</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to configure alerting for a Failover Cluster by verifying the running server name, then confirming that the windows services on said server is running as expected.&amp;nbsp; We have two servers in the cluster that could change anytime, where the one that is active should always have the windows services running (and alert if they are not and it is the active host) and the passive server should have the services stopped (expected, no alert).&lt;/P&gt;&lt;P&gt;The two WMI events that I have running on the two hosts are below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This event shows the active failover server:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Server&lt;/STRONG&gt;=Server1&lt;BR /&gt;ComputerName=Cluster&lt;BR /&gt;wmi_type=PIAnalysisCluster&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The below events shows the Windows Service events on either host:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Caption=Cluster Service&lt;BR /&gt;DisplayName=Cluster Service&lt;BR /&gt;Name=ClusSvc&lt;BR /&gt;ProcessId=3192&lt;BR /&gt;StartName=LocalSystem&lt;BR /&gt;State=Running&lt;BR /&gt;Status=OK&lt;BR /&gt;&lt;STRONG&gt;SystemName&lt;/STRONG&gt;=Server1&lt;BR /&gt;wmi_type=ClusterService&lt;/P&gt;&lt;P&gt;20210325160700.359614&lt;BR /&gt;Caption=Cluster Service&lt;BR /&gt;DisplayName=Cluster Service&lt;BR /&gt;Name=ClusSvc&lt;BR /&gt;ProcessId=3040&lt;BR /&gt;StartName=LocalSystem&lt;BR /&gt;State=Running&lt;BR /&gt;Status=OK&lt;BR /&gt;&lt;STRONG&gt;SystemName&lt;/STRONG&gt;=Server2&lt;BR /&gt;wmi_type=ClusterService&lt;BR /&gt;&lt;BR /&gt;What i am trying to do is just show where Server=Server1 is active, then show &lt;EM&gt;just&lt;/EM&gt; the status of the Windows Server from SystemName=Server1. I've tried with "eval Server=coalesce(SystemName,Server)", evals on match (Server==SystemName) as well "where Server=SystemName", but I have been unable to find a way to just show the active server based on the first event, and match the server name based on the second event with the status of the Windows Service.&lt;/P&gt;&lt;P&gt;Example attached of what the data looks like without attempting to join the values.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Razziq_0-1616715820198.png" style="width: 785px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13501i7C664780CB384A18/image-dimensions/785x199?v=v2" width="785" height="199" role="button" title="Razziq_0-1616715820198.png" alt="Razziq_0-1616715820198.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 23:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-Results-of-a-Search-on-One-Value-Based-on-the-Results/m-p/545498#M154522</guid>
      <dc:creator>Razziq</dc:creator>
      <dc:date>2021-03-25T23:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Results of a Search on One Value - Based on the Results of Two Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-Results-of-a-Search-on-One-Value-Based-on-the-Results/m-p/545508#M154527</link>
      <description>&lt;P&gt;Add this to the end of the query&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| filldown ActiveHost
| where ActiveHost=SystemName&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 26 Mar 2021 00:35:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-Results-of-a-Search-on-One-Value-Based-on-the-Results/m-p/545508#M154527</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-03-26T00:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Results of a Search on One Value - Based on the Results of Two Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Matching-Results-of-a-Search-on-One-Value-Based-on-the-Results/m-p/545509#M154528</link>
      <description>&lt;P&gt;This worked perfectly! Thank you very much, bowesmana!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 01:13:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Matching-Results-of-a-Search-on-One-Value-Based-on-the-Results/m-p/545509#M154528</guid>
      <dc:creator>Razziq</dc:creator>
      <dc:date>2021-03-26T01:13:41Z</dc:date>
    </item>
  </channel>
</rss>

