<?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 achieve a conjunction (AND operator) in a JSON nested Key-value(KV) array in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-achieve-a-conjunction-AND-operator-in-a-JSON-nested-Key/m-p/545661#M154612</link>
    <description>&lt;P&gt;Event Data:&lt;BR /&gt;{"Debug":[&lt;BR /&gt;&amp;nbsp; {"Action":"User-Created","Result":"OK"},&lt;BR /&gt;&amp;nbsp; {"Action":"Granted-Permissions","Result":"Failed"}&lt;BR /&gt;]}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My try&lt;/STRONG&gt;:&lt;BR /&gt;# Get the events where Action equal "User-Created" and Result="Failed"&lt;BR /&gt;Search: index=index_name Debug{}.Action="User-Created" AND Debug{}.Result="Failed"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected&lt;/STRONG&gt;:&lt;BR /&gt;No records should be returned because there are not a single record where the two values are true.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;:&lt;BR /&gt;Multiple records returned, conjunction is not being performed, it operates like an OR logical function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Notes&lt;/STRONG&gt;:&lt;BR /&gt;It works if I choose simple not KV data.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 21:12:40 GMT</pubDate>
    <dc:creator>T0n1g3</dc:creator>
    <dc:date>2021-03-26T21:12:40Z</dc:date>
    <item>
      <title>How achieve a conjunction (AND operator) in a JSON nested Key-value(KV) array</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-achieve-a-conjunction-AND-operator-in-a-JSON-nested-Key/m-p/545661#M154612</link>
      <description>&lt;P&gt;Event Data:&lt;BR /&gt;{"Debug":[&lt;BR /&gt;&amp;nbsp; {"Action":"User-Created","Result":"OK"},&lt;BR /&gt;&amp;nbsp; {"Action":"Granted-Permissions","Result":"Failed"}&lt;BR /&gt;]}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My try&lt;/STRONG&gt;:&lt;BR /&gt;# Get the events where Action equal "User-Created" and Result="Failed"&lt;BR /&gt;Search: index=index_name Debug{}.Action="User-Created" AND Debug{}.Result="Failed"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected&lt;/STRONG&gt;:&lt;BR /&gt;No records should be returned because there are not a single record where the two values are true.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;:&lt;BR /&gt;Multiple records returned, conjunction is not being performed, it operates like an OR logical function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Notes&lt;/STRONG&gt;:&lt;BR /&gt;It works if I choose simple not KV data.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 21:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-achieve-a-conjunction-AND-operator-in-a-JSON-nested-Key/m-p/545661#M154612</guid>
      <dc:creator>T0n1g3</dc:creator>
      <dc:date>2021-03-26T21:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: How achieve a conjunction (AND operator) in a JSON nested Key-value(KV) array</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-achieve-a-conjunction-AND-operator-in-a-JSON-nested-Key/m-p/545671#M154617</link>
      <description>&lt;P&gt;The filter on the search is returning events that have both strings. Both strings appear in your event.&lt;/P&gt;&lt;P&gt;You either have to include the whole string (escaping double quotes as necessary) "\&lt;SPAN&gt;"User-Created\",\"Result\":\"Failed\"" or you have to mvexpand (or similar) the Debug array into separate events and then filter those events.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 00:13:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-achieve-a-conjunction-AND-operator-in-a-JSON-nested-Key/m-p/545671#M154617</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-27T00:13:44Z</dc:date>
    </item>
  </channel>
</rss>

