<?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: Search is waiting for input message caused by ldapsearch? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455730#M170532</link>
    <description>&lt;P&gt;why do you use &lt;CODE&gt;$$&lt;/CODE&gt; for the host and printer tokens? That should be single &lt;CODE&gt;$&lt;/CODE&gt;. Try it with single &lt;CODE&gt;$&lt;/CODE&gt; signs.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 14:24:00 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2019-07-03T14:24:00Z</dc:date>
    <item>
      <title>Search is waiting for input message caused by ldapsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455727#M170529</link>
      <description>&lt;P&gt;I have created a dashboard which shows print jobs by Print Server/Printer/Time. I would like to include the actual name of the user instead of the sAMAccountName. I have added an ldapsearch to a "one-off" query and that works the way I expect.&lt;/P&gt;

&lt;P&gt;sourcetype=xmlwineventlog EventCode=307 Computer="fqdnOfPrintServer" | fields UserData_Xml,ThreadID | xmlkv | eval Document=Param2,UserName=Param3,Workstation=Param4,Printer=Param5,IPAddress=Param6,Bytes=Param7,Pages=Param8 | search Printer=* | join type=inner Computer,ThreadID [search sourcetype=xmlwineventlog EventCode=805 | fields UserData_Xml,ThreadID | xmlkv | eval Copies=Copies] | eval TotalPages = Pages * Copies | ldapfilter search="(&amp;amp;(objectclass=user)(!(objectclass=computer))(samAccountName=$UserName$))" attrs="displayName" | table  _time,displayName,Printer,Document,Workstation,Pages,Copies,TotalPages&lt;/P&gt;

&lt;P&gt;When I put this query into my dashboard and substitute the tokens $host$ for the Print Server and $Printer$ for the printer name, I get a "search is waiting for input" message. From what I have read, this usually means an issue with a token. When I remove the ldapsearch part of the query it works fine but displays only the sAMAccountName. Is the issue the $Username$ token in the ldapsearch? I have tried removing the $ before and after UserName but then the search displays "No results found". Is there a way to mofify this to get the information I want? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form theme="dark"&amp;gt;
  &amp;lt;label&amp;gt;Print Jobs&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="dropdown" token="host" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Print Servers&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;host&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;host&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| inputlookup ServerRoles | WHERE Roles="Print-Server" | eval host=Name | sort host | table host&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="Printer" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Printer&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Printer&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Printer&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;sourcetype=WinPrintMon | search host=$host$ | eval Printer = share | dedup Printer | sort Printer | table Printer&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="timetok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;sourcetype=xmlwineventlog EventCode=307 Computer=$$host$$* | fields UserData_Xml,ThreadID | xmlkv | eval Document=Param2,UserName=Param3,Workstation=Param4,Printer=Param5,IPAddress=Param6,Bytes=Param7,Pages=Param8 | search Printer=$$Printer$$* | join type=inner Computer,ThreadID [search sourcetype=xmlwineventlog EventCode=805 | fields UserData_Xml,ThreadID | xmlkv | eval Copies=Copies] | eval TotalPages = Pages * Copies | ldapfilter search="(&amp;amp;amp;(objectclass=user)(!(objectclass=computer))(samAccountName=$UserName$))" attrs="displayName" | table  _time,UserName,displayName,Printer,Document,Workstation,Pages,Copies,TotalPages&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$timetok.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$timetok.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;refresh&amp;gt;30s&amp;lt;/refresh&amp;gt;
          &amp;lt;refreshType&amp;gt;delay&amp;lt;/refreshType&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:10:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455727#M170529</guid>
      <dc:creator>wnyricsplunk</dc:creator>
      <dc:date>2020-09-30T01:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search is waiting for input message caused by ldapsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455728#M170530</link>
      <description>&lt;P&gt;@wnyricsplunk,&lt;/P&gt;

&lt;P&gt;Try escaping the &lt;CODE&gt;$&lt;/CODE&gt; with &lt;CODE&gt;$$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;ie. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;samAccountName=$$UserName$$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jul 2019 14:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455728#M170530</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-07-03T14:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search is waiting for input message caused by ldapsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455729#M170531</link>
      <description>&lt;P&gt;It did change from waiting for input but now there are no results found.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 14:17:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455729#M170531</guid>
      <dc:creator>wnyricsplunk</dc:creator>
      <dc:date>2019-07-03T14:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search is waiting for input message caused by ldapsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455730#M170532</link>
      <description>&lt;P&gt;why do you use &lt;CODE&gt;$$&lt;/CODE&gt; for the host and printer tokens? That should be single &lt;CODE&gt;$&lt;/CODE&gt;. Try it with single &lt;CODE&gt;$&lt;/CODE&gt; signs.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 14:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455730#M170532</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-03T14:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search is waiting for input message caused by ldapsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455731#M170533</link>
      <description>&lt;P&gt;That did it! Thank you!!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 14:35:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455731#M170533</guid>
      <dc:creator>wnyricsplunk</dc:creator>
      <dc:date>2019-07-03T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Search is waiting for input message caused by ldapsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455732#M170534</link>
      <description>&lt;P&gt;Good. So it was the combination of @renjith.nair his suggestion and mine that solved it? I've converted his comment to an answer, so you can mark it as accepted.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 14:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-is-waiting-for-input-message-caused-by-ldapsearch/m-p/455732#M170534</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-03T14:42:18Z</dc:date>
    </item>
  </channel>
</rss>

