Splunk Search

How to display the Interesting Fields in a custom search view using the Splunk web framework?

dcdd
New Member

I'm using the web framework to create my own custom search view. However, from http://docs.splunk.com/DocumentationStatic/WebFramework/1.1/compref_eventsviewer.html(EventsViewerVi...
no method about fields mentioned.

0 Karma

landen99
Motivator
| top field1 | appendpipe [| stats sum(count) AS count | eval field1="ALL" | eval percent=100]

will show you for a single field of interest.

0 Karma

bmacias84
Champion

The fields panel (include interesting fields) is not exposed through the web framework. The search page is render through set of html partials, templates, and minified javascript. Not to say you could not use the components.

Many of the components can be found under $SPLUNK_HOME/share/splunk/search_mrsparkle. I believe you can find the field picker code under $SPLUNK_HOME/share/splunk/search_mrsparkle/modules/search

Hope that gets you started.

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 ...