Splunk Search

Disable Field Discovery

Ron_Naken
Splunk Employee
Splunk Employee

In 4.2, we have the ability to click the Field Discovery button to ask Splunk to extract only necessary fields for a search -- similar to using a fields command, but automated. Is there a way to set this in the search syntax so that one could make saved searches -- or searches in knowledge objects -- that run in the OFF state, by default?

At present, if you click Field Discovery to OFF for a search, then save it, Field Discovery is re-enabled as soon as you run the saved search.

Thanks,
Ron

Tags (2)
2 Solutions

Stephen_Sorkin
Splunk Employee
Splunk Employee

You can't change the toggle via the search language, but you can achieve the same effect by using "| fields ..." to pick only the fields that you care about for your search. This will give you the same speedup as disabling the automatic field extractor.

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

Note that the field discovery this affects searches in the flashtimeline view, but not scheduled saved searches or searches run on custom dashboards. Those searches do not do the automatic field discovery and in fact optimize out any non-required fields. You can do what you want as Stephen says, by using the fields command in the search string, but note that it's only needed on the flashtimeline view (or similar derivatives).

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

Note that the field discovery this affects searches in the flashtimeline view, but not scheduled saved searches or searches run on custom dashboards. Those searches do not do the automatic field discovery and in fact optimize out any non-required fields. You can do what you want as Stephen says, by using the fields command in the search string, but note that it's only needed on the flashtimeline view (or similar derivatives).

Stephen_Sorkin
Splunk Employee
Splunk Employee

You can't change the toggle via the search language, but you can achieve the same effect by using "| fields ..." to pick only the fields that you care about for your search. This will give you the same speedup as disabling the automatic field extractor.

Get Updates on the Splunk Community!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...