<?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 How to connect consumers and providers based on ID between logs and display their server names too? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-connect-consumers-and-providers-based-on-ID-between-logs/m-p/594507#M206921</link>
    <description>&lt;P&gt;I am hoping you could help me out with this query, as I am quite stuck.&lt;/P&gt;&lt;P&gt;I want to be able to retrieve the name of the server that acts as a provider and the name of the server that acts as a consumer.&amp;nbsp; The way you could check this is a log has a ConsumerId that equals the ID of the other server. For instance, here are two logs:&lt;/P&gt;&lt;P&gt;ServerName="Server1", ID="1",&amp;nbsp;IDConsumer=null&lt;/P&gt;&lt;P&gt;ServerName="Server2", ID="2" , IDConsumer="1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;And what I want to retrieve is a table like this:&lt;/P&gt;&lt;P&gt;To&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; From&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IDConsumer&amp;nbsp; &amp;nbsp;IDProvider&lt;/P&gt;&lt;P&gt;Server1&amp;nbsp; Server2&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate a lot!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 16:24:53 GMT</pubDate>
    <dc:creator>ana</dc:creator>
    <dc:date>2022-04-20T16:24:53Z</dc:date>
    <item>
      <title>How to connect consumers and providers based on ID between logs and display their server names too?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-connect-consumers-and-providers-based-on-ID-between-logs/m-p/594507#M206921</link>
      <description>&lt;P&gt;I am hoping you could help me out with this query, as I am quite stuck.&lt;/P&gt;&lt;P&gt;I want to be able to retrieve the name of the server that acts as a provider and the name of the server that acts as a consumer.&amp;nbsp; The way you could check this is a log has a ConsumerId that equals the ID of the other server. For instance, here are two logs:&lt;/P&gt;&lt;P&gt;ServerName="Server1", ID="1",&amp;nbsp;IDConsumer=null&lt;/P&gt;&lt;P&gt;ServerName="Server2", ID="2" , IDConsumer="1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;And what I want to retrieve is a table like this:&lt;/P&gt;&lt;P&gt;To&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; From&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IDConsumer&amp;nbsp; &amp;nbsp;IDProvider&lt;/P&gt;&lt;P&gt;Server1&amp;nbsp; Server2&amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 16:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-connect-consumers-and-providers-based-on-ID-between-logs/m-p/594507#M206921</guid>
      <dc:creator>ana</dc:creator>
      <dc:date>2022-04-20T16:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect consumers and providers based on ID between logs and display their server names too?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-connect-consumers-and-providers-based-on-ID-between-logs/m-p/594517#M206924</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval To=if(isnull(IDConsumer),ServerName,null())
| eval From=if(isnull(IDConsumer),null(),ServerName)
| eval Consumes=if(isnull(IDConsumer),ID,IDConsumer)
| eval IDProvider=if(isnull(IDConsumer),null(),ID)
| stats values(To) as To values(From) as From values(IDConsumer) as IDConsumer values(IDProvider) as IDProvider by Consumes&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Apr 2022 17:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-connect-consumers-and-providers-based-on-ID-between-logs/m-p/594517#M206924</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-20T17:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect consumers and providers based on ID between logs and display their server names too?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-connect-consumers-and-providers-based-on-ID-between-logs/m-p/594519#M206925</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 17:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-connect-consumers-and-providers-based-on-ID-between-logs/m-p/594519#M206925</guid>
      <dc:creator>ana</dc:creator>
      <dc:date>2022-04-20T17:42:00Z</dc:date>
    </item>
  </channel>
</rss>

