<?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: Compare values in two different json objects in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682254#M233091</link>
    <description>&lt;LI-CODE lang="markup"&gt;| spath "Action{}" output="Action"
| spath "Effect"
| mvexpand Action&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 28 Mar 2024 10:03:07 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-03-28T10:03:07Z</dc:date>
    <item>
      <title>Compare values in two different json objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682244#M233084</link>
      <description>&lt;DIV&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This question has probably been asked and answered, but I just can't seem to find a best solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So, in the results I want to table the &lt;STRONG&gt;Allow and Deny values&lt;/STRONG&gt;. And the second result would be the &lt;STRONG&gt;| search Action=eks* only where the Effect is Allow&lt;/STRONG&gt;. I have tried till now, but I cannot relate the Allow action, it lists all values. Thanks in Advance.&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;{ "Action": [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"eks:*",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"ecs:*"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Effect": "Allow"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Action": [ &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"config:*",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"budgets:*"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Effect": "Deny",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Mar 2024 09:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682244#M233084</guid>
      <dc:creator>barosan007</dc:creator>
      <dc:date>2024-03-28T09:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in two different json objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682249#M233087</link>
      <description>&lt;P&gt;Please can you give an example of your expected results?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 09:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682249#M233087</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-28T09:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in two different json objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682252#M233090</link>
      <description>&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Action Name&lt;/TD&gt;&lt;TD width="50%"&gt;Effect&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;eks&lt;/TD&gt;&lt;TD width="50%"&gt;allow&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;ecs&lt;/TD&gt;&lt;TD width="50%"&gt;allow&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;config&lt;/TD&gt;&lt;TD width="50%"&gt;deny&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;budgets&lt;/TD&gt;&lt;TD width="50%"&gt;deny&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 28 Mar 2024 09:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682252#M233090</guid>
      <dc:creator>barosan007</dc:creator>
      <dc:date>2024-03-28T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in two different json objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682254#M233091</link>
      <description>&lt;LI-CODE lang="markup"&gt;| spath "Action{}" output="Action"
| spath "Effect"
| mvexpand Action&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Mar 2024 10:03:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682254#M233091</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-28T10:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values in two different json objects</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682271#M233097</link>
      <description>&lt;P&gt;Finally, this worked for me.&amp;nbsp; Thanks for advice.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| mvexpand Json
| spath "Action{}" input=Json output="Action"
| spath "Effect" input=Json output="Effect"
| mvexpand Action
| table Action Effect&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Mar 2024 14:06:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-values-in-two-different-json-objects/m-p/682271#M233097</guid>
      <dc:creator>barosan007</dc:creator>
      <dc:date>2024-03-28T14:06:13Z</dc:date>
    </item>
  </channel>
</rss>

