Splunk Search

set default selected fields

gfriedmann
Communicator

I have added an automatic lookup based on host value. This lookup creates the field "bettername". I want all users to notice this new field to leverage.

You may have noticed that host, source, and sourcetype are listed as "selected fields" by default on the left blue column.

How can i add my new "bettername" as a default selected field? Is there a way of doing this from the .conf files?

I think the advanced XML method involved the FieldPicker module.

puneethgowda
Communicator

Thank you very helpfull

0 Karma

ziegfried
Influencer

You can do this by creating a default viewstates.conf. Just create a file named viewstates.conf with the following content:

[flashtimeline:_current]
FieldPicker_0_6_1.fields = host,sourcetype,source,bettername

in the default or local subdirectory of your app.

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