Splunk Search

How do I display default field in apps panel

jangid
Builder

How do I display default field in my apps panel?

I want to display host, source, sourcetype in my custom panel that will display events.
here is the XML

  <form>
      <label>TAFC INI</label>
        <fieldset autoRun="true">
            <input type="time" searchWhenChanged="true">
                <default>All time</default>
            </input>
        </fieldset>  
      <row>
        <event>
          <searchName>my_ini</searchName>
          <title>ini Configuration</title>
        </event>
      </row>
    </form>

I want to display these below the event listing similar to default search app event listing

myeventlisting
host=myhost | sourcetype=mysrctype | Source=mysource

Tags (1)
0 Karma

jangid
Builder

Is there any way to display these field at the bottom of the event listing?

myeventlisting
host=myhost | sourcetype=mysrctype | Source=mysource

0 Karma

Drainy
Champion

Simple, just make sure you | table host,source,sourcetype in your search and then use the table xml to display it as per;

http://docs.splunk.com/Documentation/Splunk/latest/Developer/PanelReference#Table_panel

Edit: Also, whilst its great to ask questions when you're stuck. For basic beginner things like these you should really sit down and read the docs. They have some great explanations and walk-throughs. When you get stuck after that then come back with a more detailed question 🙂

jangid
Builder

Is there any way to display these field at the bottom of the event listing?

myeventlisting
host=myhost | sourcetype=mysrctype | Source=mysource

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...