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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...