Hi ITWhisperer, This is really helpful. Just one suggestion needed . Can we use lookup table for drop-down values instead of hard coding the values as they are 30+ and may increase in future. Can you guide me on that. Below is the code for drop-down inputlookup: <input type="multiselect" token="name" searchWhenChanged="true"> <label> Name</label> <choice value="*">All Name</choice> <search> <query>|inputlookup abc.csv|table FolderName</query> <earliest>$field4.earliest$</earliest> <latest>$field4.latest$</latest> </search> <fieldForLabel>FolderName</fieldForLabel> <fieldForValue>FolderName</fieldForValue> <prefix>(</prefix> <valuePrefix>FolderName ="</valuePrefix> <valueSuffix>"</valueSuffix> <delimiter> OR </delimiter> <suffix>)</suffix> <initialValue>*</initialValue> <default>*</default> </input> The code that I am using currently with hard-coded values: <form theme="dark"> <label> Build Report </label> <fieldset submitButton="false" autoRun="true"> <input type="multiselect" token="Org" searchWhenChanged="true"> <label> Org Name</label> <choice value="All">All Org</choice> <choice value="accert">accert</choice> <choice value="atj">atj</choice> <choice value="force">force</choice> <choice value="merchant">merchant</choice> <choice value="control">control</choice> <choice value="gcpi">gcpi</choice> <choice value="ppp">ppp</choice> <choice value="theforce">theforce</choice> <choice value="gpof">gpof</choice> <choice value="hkin">hkin</choice> <choice value="ihh">ihh</choice> ....... ........ ....... <prefix>(</prefix> <valuePrefix>OrgFolderName ="</valuePrefix> <valueSuffix>"</valueSuffix> <delimiter> OR </delimiter> <suffix>)</suffix> <initialValue>All</initialValue> <default>All</default> <change> <eval token="form.Org">case(mvcount('form.Org')=0,"All",mvcount('form.Org')>1 AND mvfind('form.Org',"All")>0,"All",mvcount('form.Org')>1 AND mvfind('form.Org',"All")=0,mvfilter('form.Org'!="All"),1==1,'form.Org')</eval> <eval token="accert">if(isnull(mvfind('form.Org',"accert")),mvfind('form.Org',"All"),1)</eval> <eval token="atj">if(isnull(mvfind('form.Org',"atj")),mvfind('form.Org',"All"),1)</eval> <eval token="force">if(isnull(mvfind('form.Org',"force")),mvfind('form.Org',"All"),1)</eval> <eval token="merchant">if(isnull(mvfind('form.Org',"merchant")),mvfind('form.Org',"All"),1)</eval> <eval token="control">if(isnull(mvfind('form.Org',"control")),mvfind('form.Org',"All"),1)</eval> <eval token="gcpi">if(isnull(mvfind('form.Org',"gcpi")),mvfind('form.Org',"All"),1)</eval> <eval token="ppp">if(isnull(mvfind('form.Org',"ppp")),mvfind('form.Org',"All"),1)</eval> <eval token="theforce">if(isnull(mvfind('form.Org',"theforce")),mvfind('form.Org',"All"),1)</eval> <eval token="gpof">if(isnull(mvfind('form.Org',"gpof")),mvfind('form.Org',"All"),1)</eval> <eval token="org_choice">if(mvfind('form.Org',"All")=0,"(OrgFolderName!=imhe_b AND OrgFolderName!=imhe_e",$Org$)"</eval> ....... ....... ....... ........ </change> </input> <input type="time" token="field4" searchWhenChanged="true"> <label>Date/Time</label> <default> <earliest>-1d@d</earliest> <latest>@d</latest> </default> </fieldset> <panel> <title>Summary of Average Build Times of all orgs over the selected time period.</title> <chart> <search> <query>index=abc sourcetype="xyz" (BuildResult=SUCCESS) $org_choice$ | eval BuildDurationInMinutes=round(BuildDuration/40000,1) | chart avg(BuildDurationInMinutes) as AverageBuildDurationInMinutes over OrgFolderName limit=40 | sort -AverageBuildDurationInMinutes</query> <earliest>$field4.earliest$</earliest> <latest>$field4.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.text">Org</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.text">Average Build Duration In Minutes</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> </chart> </panel> </row> <row> <panel depends="$merchant$"> <title> Report for Merchant</title> <chart> <search> <query>index=abc sourcetype="xyz" OrgFolderName=merchant BuildResult=SUCCESS </query> <earliest>$field4.earliest$</earliest> <latest>$field4.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.text">Date</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.text">BuildDuration in minutes</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> </chart> </panel> </row> <panel depends="$accert$"> <title> Report for accert</title> <chart> <search> <query>index=abc sourcetype="xyz" OrgFolderName=accert BuildResult=SUCCESS</query> <earliest>$field4.earliest$</earliest> <latest>$field4.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.text">Date</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.text">BuildDuration in minutes</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> </chart> </panel> </row> ........ ......... ......... </form>
... View more