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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...