Dashboards & Visualizations

Why is the table not populating

shrogers
Loves-to-Learn Everything

Hello Community,

Any assistance given will be appreciated.

Trying to figure out why my table not populating.

<form version="1.1" theme="dark">
<label>ATM Analyzer</label>
<fieldset submitButton="false" autoRun="true">
<input type="dropdown" token="status_token">
<label>Status</label>
<fieldForLabel>eventstatus</fieldForLabel>
<fieldForValue>eventstatus</fieldForValue>
<selectFirstChoice>true</selectFirstChoice>
<search>
<query>index=atm source="D:\\Program Files\\file.dat" | dedup eventstatus | table eventstatus</query>
</search>
<default>INFO</default>
<initialValue>INFO</initialValue>
</input>
<input type="dropdown" token="atm_token" searchWhenChanged="false">
<label>ATM</label>
<selectFirstChoice>true</selectFirstChoice>
<search>
<query>index=atm source="D:\\Program Files\\file.dat" | search eventstatus=$status_token$ | dedup atmnumber | table atmnumber</query>
</search>
<fieldForLabel>atmnumber</fieldForLabel>
<fieldForValue>atmnumber</fieldForValue>
<choice value="*">All</choice>
<default>*</default>
<initialValue>*</initialValue>
</input>
<input type="dropdown" token="event_token">
<label>Event</label>
<selectFirstChoice>true</selectFirstChoice>
<search>
<query>index=atm source="D:\\Program Files\\file.dat" | search (eventstatus=$status_token$ AND atmnumber=$atm_token$) | dedup eventtype | table eventtype</query>
</search>
<fieldForLabel>eventtype</fieldForLabel>
<fieldForValue>eventtype</fieldForValue>
<choice value="*">All</choice>
<default>*</default>
<initialValue>*</initialValue>
</input>
<input type="time" token="timerange">
<label></label>
<default>
<earliest>-24h@h</earliest>
<latest>now</latest>
</default>
</input>
</fieldset>
<row>
<panel>
<table>
<search>
<query>index=atm source="D:\\Program Files\\file.dat" where (eventstatus=$status_token$ AND atmnumber="atm_token" AND eventtype=$event_token$) | rename eventtime as Time, eventstatus as Status, atmnumner as ATM, eventtype as Fault, eventdescription as Description | table Time Status ATM Fault Description</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">20</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
</form>

 

Labels (2)
0 Karma

shrogers
Loves-to-Learn Everything

Thank you. Issue resolved after using base search. Was able to identified the issue.

0 Karma

shrogers
Loves-to-Learn Everything

It's being used. highlighted in bold.

<search>
<query>index=atm source="D:\\Program Files\\file.dat" where (eventstatus=$status_token$ AND atmnumber="atm_token" AND eventtype=$event_token$) | rename eventtime as Time, eventstatus as Status, atmnumner as ATM, eventtype as Fault, eventdescription as Description | table Time Status ATM Fault Description</query>

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It is not being used as a token - try atmnumber=$atm_token$

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It looks like atm_token is not being used as a token in your table search

0 Karma

shrogers
Loves-to-Learn Everything

<search>
<query>index=atm source="D:\\Program Files\\file.dat" where (eventstatus=$status_token$ AND atmnumber="atm_token" AND eventtype=$event_token$) | rename eventtime as Time, eventstatus as Status, atmnumner as ATM, eventtype as Fault, eventdescription as Description | table Time Status ATM Fault Description</query>

0 Karma
Get Updates on the Splunk Community!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...