Dashboards & Visualizations

Forms in Splunk 6 not working

benspader
Explorer

I have form in splunk 6 that is not working the error it it is giving me is "Search query is not fully resolved." When I hardcode a number over the $cn1$ variable it works. What am I doing wrong?




eventtype="Lookups" cn1=$cn1$ | stats max(_time) as maxtime min(_time) as mintime | eval difference=maxtime-mintime | eval difference=strftime(difference,"%d DAYS %H hrs:%M m:%S s") | fields difference


type="text" token="cn1">


<!-- Add time range picker -->
<input type="time" searchWhenChanged="true">
  <default>
    <earliestTime>0</earliestTime>
    <latestTime>now</latestTime>
  </default>
</input>



Timeframe from first to last lookup
search


Tags (2)
0 Karma
1 Solution

nfilippi_splunk
Splunk Employee
Splunk Employee

Looks like you have some small syntax issues:

---     <searchtemplate>
+++   <searchTemplate>

---     </searchtemplate>
+++   </searchTemplate>

---     <input> type="text" token="cn1">
+++    <input type="text" token="cn1">

View solution in original post

nfilippi_splunk
Splunk Employee
Splunk Employee

Looks like you have some small syntax issues:

---     <searchtemplate>
+++   <searchTemplate>

---     </searchtemplate>
+++   </searchTemplate>

---     <input> type="text" token="cn1">
+++    <input type="text" token="cn1">

benspader
Explorer

Thank you very much! That was it!

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...