Dashboards & Visualizations

Splunk Classic Dashboard Event Panel Table Visualization

lcguilfoil
Path Finder

I am creating a Classic Dashboard. I have a Events Panel that is in the Table format. The headers for the table are the following events: _time, host, source, and sourcetype. These are the "Selected Fields". However, there are other fields that I would like to include as "Selected" so that they show up on the header. Is there anyway to do that?

<panel>
	<event>
		<search>
			<query>index=*</query>
			<earliest>$global_time.earliest$</earliest>
			<latest>$global_time.latest$</latest>
		</search>
		<option name="type">table</option>
	</event>
</panel>

 

Labels (2)
0 Karma
1 Solution

lcguilfoil
Path Finder

I figured it out! I added the fields:

<panel>
	<event>
		<search>
			<query>index=*</query>
			<earliest>$global_time.earliest$</earliest>
			<latest>$global_time.latest$</latest>
		</search>
		<fields>field, field2, field3</fields>
		<option name="type">table</option>
	</event>
</panel>

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try using the table command in your query

index=* | table _time, host, source, sourcetype, otherfield1, otherfield2
0 Karma

lcguilfoil
Path Finder

Hello! Thank you for your response. I tried that. However, the Selected Field headers are still just _time, host, source, and sourcetype. The footer Event Fields that appear when I expand the event do include the fields that I put in the table command (ex: Level, Details, etc), but don't appear as the headers or the Selected Fields.

0 Karma

lcguilfoil
Path Finder

I figured it out! I added the fields:

<panel>
	<event>
		<search>
			<query>index=*</query>
			<earliest>$global_time.earliest$</earliest>
			<latest>$global_time.latest$</latest>
		</search>
		<fields>field, field2, field3</fields>
		<option name="type">table</option>
	</event>
</panel>
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...