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!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...