Hi I'm trying to create a simple search input as a drop-down. I've defined static values for the drop-down. The problem I'm having is that each character in my value is being separated by a space when inserted into the search. Here's my entire search dashboard definition:
<form>
<label>Riva Cloud Diagnostics By Time</label>
<fieldset submitButton="false">
<input type="time" token="time_tok">
<label></label>
<default>
<earliest>-1m</earliest>
<latest>now</latest>
</default>
</input>
<input type="dropdown" token="pod_tok" searchWhenChanged="true">
<label>pod</label>
<default>*</default>
<choice value="*">Any</choice>
<choice value="na5">na5</choice>
<choice value="xi5">xi5</choice>
<choice value="yi5">yi5</choice>
</input>
</fieldset>
<row>
<panel>
<table>
<search>
<query>index="rc-diagnostics" pod="$pod_tok$" sourcetype=RivaDiagnostics* | table "_time", "pod", "message", "referenceId", "exception", "errorDetails", "thread","processId", "levelInt", "userName" | sort -_time | head 500</query>
<earliest>$time_tok.earliest$</earliest>
<latest>$time_tok.latest$</latest>
</search>
<option name="count">30</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
</form>
When one of my "pod_tok" values are selected, in the search the values are being added with extra spaces.
For example, if I select 'na5' the resulting search looks like this:
index="rc-diagnostics" pod="n a 5" sourcetype=RivaDiagnostics* | table "_time", "pod", "message", "referenceId", "exception", "errorDetails", "thread","processId", "levelInt", "userName" | sort -_time | head 500
Which of course is incorrect.
How can I define my drop-down input properly so that the values are entered into my search without the extraneous spaces?
... View more