<?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 result when two fields are dependent in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-display-result-when-two-fields-are-dependent/m-p/670167#M2655</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262258"&gt;@Splunkerninja&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I used makeresults to get a statistical table as provided in the question. You can use the below query to identify a User that has ID to be "AD" and "AR9"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval User="John", ID="AD" 
| append 
    [| makeresults 
    | eval User="John", ID="AY9"]
| append 
    [| makeresults 
    | eval User="Riya", ID="AD"]
| append 
    [| makeresults 
    | eval User="Toby", ID="AR9"]
| append 
    [| makeresults 
    | eval User="Nathan", ID="AD"]
| append 
    [| makeresults 
    | eval User="Nathan", ID="AR9"]
| append 
    [| makeresults 
    | eval User="Sam", ID="AD"]
| append 
    [| makeresults 
    | eval User="Sam", ID="AR9"]
| fields - _time
| table User ID
| stats values(ID) as ID by User
| mvcombine ID delim=""
| eval match=if(match(ID,"AD AR9"),1,0)
| search match="1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Tejas.&lt;BR /&gt;&lt;BR /&gt;---&lt;/P&gt;&lt;P&gt;If the above solution is helpful, an upvote is appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2023 12:32:21 GMT</pubDate>
    <dc:creator>tej57</dc:creator>
    <dc:date>2023-11-29T12:32:21Z</dc:date>
    <item>
      <title>How to display result when two fields are dependent</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-display-result-when-two-fields-are-dependent/m-p/670159#M2654</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to display the result only for users who&amp;nbsp; has both ID&amp;nbsp; AR9 &amp;amp; AD. Below is sample data, I have about 10k results being generated with multiple values but i need to display only those users who has ID both AR9 &amp;amp; AD&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="312"&gt;&lt;P&gt;USER&lt;/P&gt;&lt;/TD&gt;&lt;TD width="312"&gt;&lt;P&gt;&amp;nbsp;ID&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="312"&gt;&lt;P&gt;John&lt;/P&gt;&lt;/TD&gt;&lt;TD width="312"&gt;&lt;P&gt;AD&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="312"&gt;&lt;P&gt;John&lt;/P&gt;&lt;/TD&gt;&lt;TD width="312"&gt;&lt;P&gt;AY9&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="312"&gt;&lt;P&gt;Riya&lt;/P&gt;&lt;/TD&gt;&lt;TD width="312"&gt;&lt;P&gt;AD&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="312"&gt;&lt;P&gt;Toby&lt;/P&gt;&lt;/TD&gt;&lt;TD width="312"&gt;&lt;P&gt;AR9&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="312"&gt;&lt;P&gt;&lt;STRONG&gt;Nathan&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="312"&gt;&lt;P&gt;&lt;STRONG&gt;AD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="312"&gt;&lt;P&gt;&lt;STRONG&gt;Nathan&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="312"&gt;&lt;P&gt;&lt;STRONG&gt;AR9&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="312"&gt;&lt;P&gt;&lt;STRONG&gt;Sam&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="312"&gt;&lt;P&gt;&lt;STRONG&gt;AD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="312"&gt;&lt;P&gt;&lt;STRONG&gt;Sam&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="312"&gt;&lt;P&gt;&lt;STRONG&gt;AR9&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 12:08:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-display-result-when-two-fields-are-dependent/m-p/670159#M2654</guid>
      <dc:creator>Splunkerninja</dc:creator>
      <dc:date>2023-11-29T12:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to display result when two fields are dependent</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-display-result-when-two-fields-are-dependent/m-p/670167#M2655</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262258"&gt;@Splunkerninja&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I used makeresults to get a statistical table as provided in the question. You can use the below query to identify a User that has ID to be "AD" and "AR9"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval User="John", ID="AD" 
| append 
    [| makeresults 
    | eval User="John", ID="AY9"]
| append 
    [| makeresults 
    | eval User="Riya", ID="AD"]
| append 
    [| makeresults 
    | eval User="Toby", ID="AR9"]
| append 
    [| makeresults 
    | eval User="Nathan", ID="AD"]
| append 
    [| makeresults 
    | eval User="Nathan", ID="AR9"]
| append 
    [| makeresults 
    | eval User="Sam", ID="AD"]
| append 
    [| makeresults 
    | eval User="Sam", ID="AR9"]
| fields - _time
| table User ID
| stats values(ID) as ID by User
| mvcombine ID delim=""
| eval match=if(match(ID,"AD AR9"),1,0)
| search match="1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Tejas.&lt;BR /&gt;&lt;BR /&gt;---&lt;/P&gt;&lt;P&gt;If the above solution is helpful, an upvote is appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 12:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-display-result-when-two-fields-are-dependent/m-p/670167#M2655</guid>
      <dc:creator>tej57</dc:creator>
      <dc:date>2023-11-29T12:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to display result when two fields are dependent</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-display-result-when-two-fields-are-dependent/m-p/670195#M2658</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/155831"&gt;@tej57&lt;/a&gt;&amp;nbsp;Thanks but how can i include _time as well in the result since after mvcombine the _time data gets dropped&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 13:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/How-to-display-result-when-two-fields-are-dependent/m-p/670195#M2658</guid>
      <dc:creator>Splunkerninja</dc:creator>
      <dc:date>2023-11-29T13:46:32Z</dc:date>
    </item>
  </channel>
</rss>

