<?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 AND Operator in JSON in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/AND-Operator-in-JSON/m-p/339500#M62669</link>
    <description>&lt;P&gt;I have a Log System which Logs in JSON Format Like these:&lt;BR /&gt;
{&lt;BR /&gt;
    "API_Name": "Get ID Cards",&lt;BR /&gt;
    "End Point": "/write/api/v1.1/sequoiauser/idcards",&lt;BR /&gt;
    "UserID": "ABC-123",&lt;BR /&gt;
    "Response": "",&lt;BR /&gt;
    "Error": "Logos attachment retrieval Failed"&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;{&lt;BR /&gt;
    "API_Name": "Get ID Cards",&lt;BR /&gt;
    "End Point": "/write/api/v1.1/sequoiauser/idcards",&lt;BR /&gt;
    "UserID": "XYZ-123",&lt;BR /&gt;
    "Response": "{"url" : "&lt;A href="http://some-url%22%7D" target="_blank"&gt;http://some-url"}&lt;/A&gt;",&lt;BR /&gt;
        "Error" : null&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;Now I want to view all documents where UserID is "ABC-123" and API_Name is "Get ID Cards".&lt;BR /&gt;
Can anyone let me know how to achieve this?&lt;BR /&gt;
I have added KV_MODE as json.&lt;/P&gt;

&lt;P&gt;"API_Name" : "Get ID Cards" AND "UserID" : "ABC-123" query list even the doc which has "UserID" : "XYZ-123"&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:31:44 GMT</pubDate>
    <dc:creator>belicoff</dc:creator>
    <dc:date>2020-09-29T16:31:44Z</dc:date>
    <item>
      <title>AND Operator in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AND-Operator-in-JSON/m-p/339500#M62669</link>
      <description>&lt;P&gt;I have a Log System which Logs in JSON Format Like these:&lt;BR /&gt;
{&lt;BR /&gt;
    "API_Name": "Get ID Cards",&lt;BR /&gt;
    "End Point": "/write/api/v1.1/sequoiauser/idcards",&lt;BR /&gt;
    "UserID": "ABC-123",&lt;BR /&gt;
    "Response": "",&lt;BR /&gt;
    "Error": "Logos attachment retrieval Failed"&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;{&lt;BR /&gt;
    "API_Name": "Get ID Cards",&lt;BR /&gt;
    "End Point": "/write/api/v1.1/sequoiauser/idcards",&lt;BR /&gt;
    "UserID": "XYZ-123",&lt;BR /&gt;
    "Response": "{"url" : "&lt;A href="http://some-url%22%7D" target="_blank"&gt;http://some-url"}&lt;/A&gt;",&lt;BR /&gt;
        "Error" : null&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;Now I want to view all documents where UserID is "ABC-123" and API_Name is "Get ID Cards".&lt;BR /&gt;
Can anyone let me know how to achieve this?&lt;BR /&gt;
I have added KV_MODE as json.&lt;/P&gt;

&lt;P&gt;"API_Name" : "Get ID Cards" AND "UserID" : "ABC-123" query list even the doc which has "UserID" : "XYZ-123"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AND-Operator-in-JSON/m-p/339500#M62669</guid>
      <dc:creator>belicoff</dc:creator>
      <dc:date>2020-09-29T16:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: AND Operator in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AND-Operator-in-JSON/m-p/339501#M62670</link>
      <description>&lt;P&gt;Hi there @belicoff&lt;/P&gt;

&lt;P&gt;Try like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | where UserID="ABC-123" AND API_Name="Get ID Cards"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2017 13:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AND-Operator-in-JSON/m-p/339501#M62670</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2017-10-31T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: AND Operator in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AND-Operator-in-JSON/m-p/339502#M62671</link>
      <description>&lt;P&gt;Thanks, It Worked&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 13:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AND-Operator-in-JSON/m-p/339502#M62671</guid>
      <dc:creator>belicoff</dc:creator>
      <dc:date>2017-10-31T13:29:19Z</dc:date>
    </item>
  </channel>
</rss>

