Optimize field filter performance using Splunk Web
Preview features are provided by Splunk to you "as is" without any warranties, maintenance and support, or service level commitments. Splunk makes this preview feature available in its sole discretion and may discontinue it at any time. Use of preview features is subject to the Splunk General Terms.
READ THIS FIRST: Should you deploy field filters in your organization?
Field filters are a powerful tool that can help many organizations protect their sensitive fields from prying eyes, but it might not be a good fit for everyone. If your organization runs Splunk Enterprise Security or if your users rely heavily on commands that field filters restricts by default (mpreview
, mstats
, tstats
, typeahead
, and walklex
), do not use field filters in production until you have thoroughly planned how you will work around these restricted commands. See READ THIS: Restricted commands do not work in searches on indexes that have field filters.
How to optimize field filter performance using Splunk Web
By default, a field filter configuration filters all events on the Splunk platform from all available hosts, sources, and source types in the specified target indexes, which can impact performance on unrelated search results. This section describes how you can improve performance by fine-tuning the indexes, hosts, sources, and source types that a field filter draws from. See Plan for field filters in your organization.
Prerequisites
To create, view, edit, and delete field filters, you must be a member of the admin or sc_admin role. Custom roles aren't supported for managing field filters.
Restrict field filters to specific indexes
You must specify the searchable target indexes when you set up your field filters.
Steps
To restrict a field filter to specific indexes, follow these steps.
- Select Settings and then Field filters from Users And Authentication.
- Select New field filter.
- In the Field filter and limit page, enter a name and optional description for your new field filter.
- Enter the name of the target indexes you want to search that contain the data you want to protect. Only events from these indexes are filtered by the field filter.
For example, to configure your field filter to filter events from an index calledcustomers
, set the target index to thecustomers
index. - Enter additional information as needed to configure your field filter.
- Select Next, and then select Next after reviewing the subsequent pages. Then select Save to update the field filter with your change.
Restrict field filters to specific hosts, sources, or source types
For more efficient searches and better performance, use the field filter limit settings in Splunk Web to restrict the field filters to specific hosts, sources, or source types. For example, your searches will be faster if you configure your field filter to filter events from a specific host called hostname1
. Instead of filtering all events, only those events from the host hostname1
are filtered.
Keep the following considerations in mind when you plan to limit your field filter to specific hosts, sources, or source types:
- You can specify only one value for each field filter limit type, but you can specify multiple hosts, sources, or source types limits.
- The field filter limit settings do not support statements that include wildcards or the following operators: AND, OR.
Steps
This section describes how to use Splunk Web to edit an existing field filter to filter fields from specific hosts, sources, or source types.
- Select Settings and then Field filters from Users And Authentication.
- Select Edit from the Actions menu for the field filter you want to update.
- In the Limit type field, select the host, source, or source type. Only one limit type is supported per field filter.
- Enter the name of one or more hosts, sources, or source types in Host limit, Source limit, or Source type limit.
- Select Next, and then select Next after reviewing the subsequent pages. Then select Save to update the field filter with your change.
Examples
1. Set the source type for a field
Say you have a field filter that redacts values of the IP_addr
field in searches with the string xxxx
. The IP_addr field filter applies to all events with the IP_addr
field.
To apply the IP_addr
field filter only to events that have the IP_addr
field and the cisco_syslog
source type, edit the field filter by following these steps:
- Select Settings and then Field filters from Users And Authentication.
- Select the IP_addr field filter, then select Edit from the Actions menu.
- In the Limit type field, select Source type.
- In the Source type limit field, enter
cisco_syslog
. - Select Next and then Save.
See also
Create field filters using Splunk Web | Exempt certain roles from field filters using Splunk Web |
This documentation applies to the following versions of Splunk Cloud Platform™: 9.2.2403
Feedback submitted, thanks!