<?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: Need help with Query using AND/OR and NOT IN Operators in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Need-help-with-Query-using-AND-OR-and-NOT-IN-Operators/m-p/461752#M1799</link>
    <description>&lt;P&gt;Mask double quotes with backslash in data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u username:password &lt;A href="https://host:8089/servicesNS/admin/search/search/jobs/export" target="test_blank"&gt;https://host:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; --data-urlencode search="search index=node message=abc appId=\"xyz\" items.x_id != \"\" OR items.data.ed_id!=\"\" earliest=01/27/2020:0:0:0 latest=01/28/2020:0:0:0" -d output_mode=xml -o test1.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And also check test1.xml. Error messages will be written there.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 03:22:14 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-03-31T03:22:14Z</dc:date>
    <item>
      <title>Need help with Query using AND/OR and NOT IN Operators</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Need-help-with-Query-using-AND-OR-and-NOT-IN-Operators/m-p/461751#M1798</link>
      <description>&lt;P&gt;Hello All, I am trying to run a search query via API's and getting errors. I am trying to utilize AND/OR and NOT IN operators. The query is getting results from Splunk UI but it is not working via API Calls. &lt;/P&gt;

&lt;P&gt;QUERY:&lt;BR /&gt;
index=node message=abc appId="xyz" items.x_id != ""  OR items.data.ed_id!=“” &lt;/P&gt;

&lt;P&gt;API CALL:&lt;BR /&gt;
curl -k -u username:password &lt;A href="https://host:8089/servicesNS/admin/search/search/jobs/export" target="_blank"&gt;https://host:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; --data-urlencode search="search index=node message=abc appId="xyz" items.x_id != ""  OR items.data.ed_id!=“” earliest=01/27/2020:0:0:0 latest=01/28/2020:0:0:0" -d output_mode=xml -o test1.xml&lt;/P&gt;

&lt;P&gt;I have tried multiple combinations with quotes and no quotes but was not able to figure out. Your help and guidance would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Need-help-with-Query-using-AND-OR-and-NOT-IN-Operators/m-p/461751#M1798</guid>
      <dc:creator>zqureshi</dc:creator>
      <dc:date>2020-09-30T04:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Query using AND/OR and NOT IN Operators</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Need-help-with-Query-using-AND-OR-and-NOT-IN-Operators/m-p/461752#M1799</link>
      <description>&lt;P&gt;Mask double quotes with backslash in data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u username:password &lt;A href="https://host:8089/servicesNS/admin/search/search/jobs/export" target="test_blank"&gt;https://host:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; --data-urlencode search="search index=node message=abc appId=\"xyz\" items.x_id != \"\" OR items.data.ed_id!=\"\" earliest=01/27/2020:0:0:0 latest=01/28/2020:0:0:0" -d output_mode=xml -o test1.xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And also check test1.xml. Error messages will be written there.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 03:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Need-help-with-Query-using-AND-OR-and-NOT-IN-Operators/m-p/461752#M1799</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-31T03:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Query using AND/OR and NOT IN Operators</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Need-help-with-Query-using-AND-OR-and-NOT-IN-Operators/m-p/461753#M1800</link>
      <description>&lt;P&gt;never mix &lt;CODE&gt;AND&lt;/CODE&gt; (implied) and &lt;CODE&gt;OR&lt;/CODE&gt; without using parentheses &lt;CODE&gt;()&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 06:05:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Need-help-with-Query-using-AND-OR-and-NOT-IN-Operators/m-p/461753#M1800</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-31T06:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Query using AND/OR and NOT IN Operators</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Need-help-with-Query-using-AND-OR-and-NOT-IN-Operators/m-p/461754#M1801</link>
      <description>&lt;P&gt;Thank you, I am still getting no results with the API Call.  The bottom part of the message has the output. I played with the syntax and found out the following syntax is the culprit. &lt;/P&gt;

&lt;P&gt;items.data.fed_id != \"\" OR items.institution_id != \"\"&lt;/P&gt;

&lt;P&gt;Do I have to list items in a different format?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;OUTPUT:&lt;/STRONG&gt;&lt;BR /&gt;
  Configuration initialization for D:\Splunk\etc took 32ms when dispatching a search (search ID: 1585678811.20528)&lt;BR /&gt;
  base lispy: [ AND counter index::node jw logger report static ui ]&lt;BR /&gt;
  search context: user="jw_search", app="search", bs-pathname="D:\Splunk\etc"&lt;BR /&gt;
  Your timerange was substituted based on your search string&lt;BR /&gt;
  Eventtype 'wineventlog_application' does not exist or is disabled.&lt;BR /&gt;
  Eventtype 'wineventlog_security' does not exist or is disabled.&lt;BR /&gt;
  Eventtype 'wineventlog_system' does not exist or is disabled.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Need-help-with-Query-using-AND-OR-and-NOT-IN-Operators/m-p/461754#M1801</guid>
      <dc:creator>zqureshi</dc:creator>
      <dc:date>2020-09-30T04:50:46Z</dc:date>
    </item>
  </channel>
</rss>

