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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...