<?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 REST search issue using Postman in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/REST-search-issue-using-Postman/m-p/426964#M171688</link>
    <description>&lt;P&gt;I have the authorization done, and when I do the POST  to do a search I keep getting the error:&lt;BR /&gt;
(note AAAA and bbb, nnnnnn are the correct host and logpath  values in my actual search)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;messages&amp;gt;
        &amp;lt;msg type="DEBUG"&amp;gt;Configuration initialization for /var/splunkhot/splunk/etc took 143ms when dispatching a search (search ID: 1556216277.24597_33CF52FC-F282-491A-875E-F8EC1EB01F4C)&amp;lt;/msg&amp;gt;
        &amp;lt;msg type="DEBUG"&amp;gt;Invalid eval expression for 'EVAL-url_length' in stanza [pan:threat]: The expression is malformed. Expected LIKE.&amp;lt;/msg&amp;gt;
        &amp;lt;msg type="DEBUG"&amp;gt;base lispy: [ AND host::AAAAAAA source::/app/jboss/bbbb/log/server.log ]&amp;lt;/msg&amp;gt;
        &amp;lt;msg type="DEBUG"&amp;gt;search context: user="nnnnnnnn", app="search", bs-pathname="/var/splunkhot/splunk/etc"&amp;lt;/msg&amp;gt;
    &amp;lt;/messages&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The actual search I have in the body is this )   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; search=search+host%3DAAAAAA+source%3D%2Fapp%2Fjboss%2Fbbbbb%2Flog%2Fserver.log+%7C+search+ERROR+earliest%3D-4h
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried a bunch of different variations, but I am always getting th EVAL-url Length error.&lt;BR /&gt;
I even did JUST&lt;/P&gt;

&lt;P&gt;search=search+host%3DAAAAAA&lt;/P&gt;

&lt;P&gt;and still got the error!&lt;/P&gt;

&lt;P&gt;Any ideas here on how to format the search correctly to get this to run without that error?  I can run the search directly in SPLUNK so it does in fact work.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 18:33:14 GMT</pubDate>
    <dc:creator>gartnerj</dc:creator>
    <dc:date>2019-04-25T18:33:14Z</dc:date>
    <item>
      <title>REST search issue using Postman</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REST-search-issue-using-Postman/m-p/426964#M171688</link>
      <description>&lt;P&gt;I have the authorization done, and when I do the POST  to do a search I keep getting the error:&lt;BR /&gt;
(note AAAA and bbb, nnnnnn are the correct host and logpath  values in my actual search)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;messages&amp;gt;
        &amp;lt;msg type="DEBUG"&amp;gt;Configuration initialization for /var/splunkhot/splunk/etc took 143ms when dispatching a search (search ID: 1556216277.24597_33CF52FC-F282-491A-875E-F8EC1EB01F4C)&amp;lt;/msg&amp;gt;
        &amp;lt;msg type="DEBUG"&amp;gt;Invalid eval expression for 'EVAL-url_length' in stanza [pan:threat]: The expression is malformed. Expected LIKE.&amp;lt;/msg&amp;gt;
        &amp;lt;msg type="DEBUG"&amp;gt;base lispy: [ AND host::AAAAAAA source::/app/jboss/bbbb/log/server.log ]&amp;lt;/msg&amp;gt;
        &amp;lt;msg type="DEBUG"&amp;gt;search context: user="nnnnnnnn", app="search", bs-pathname="/var/splunkhot/splunk/etc"&amp;lt;/msg&amp;gt;
    &amp;lt;/messages&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The actual search I have in the body is this )   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; search=search+host%3DAAAAAA+source%3D%2Fapp%2Fjboss%2Fbbbbb%2Flog%2Fserver.log+%7C+search+ERROR+earliest%3D-4h
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried a bunch of different variations, but I am always getting th EVAL-url Length error.&lt;BR /&gt;
I even did JUST&lt;/P&gt;

&lt;P&gt;search=search+host%3DAAAAAA&lt;/P&gt;

&lt;P&gt;and still got the error!&lt;/P&gt;

&lt;P&gt;Any ideas here on how to format the search correctly to get this to run without that error?  I can run the search directly in SPLUNK so it does in fact work.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 18:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REST-search-issue-using-Postman/m-p/426964#M171688</guid>
      <dc:creator>gartnerj</dc:creator>
      <dc:date>2019-04-25T18:33:14Z</dc:date>
    </item>
  </channel>
</rss>

