Splunk Enterprise Security

How get data, which are the index fields are used in which alert or search or dashboards?

NDabhi21
Explorer

would like to reduce the Log data size in index by cut field which are not useful for the use case .

 Before cut fields  would like check the utilization of  field, whether fields are used in any dashboard or searches by any other users.

Labels (1)
Tags (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Firstly - are you sure you're talking about indexed fields?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

It's a good idea to trim the number of indexed fields.  It's not a trivial task, however.  There is no auditing of which fields are used and which are not so it will require a good bit of effort on your part to figure it out.

Start with the walklex command to get a good idea of which fields are indexed (it's not 100% accurate).  Use that list to search dashboards, saved searches, eventtypes, calculated fields, and macros for matches.  If you use any accelerated datamodels then search those, too.

Some REST commands that may help:

| rest /servicesNS/-/-/saved/searches
| rest /servicesNS/-/-/data/ui/views
| rest /services/data/models
---
If this reply helps you, Karma would be appreciated.
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It is probably impossible to be 100% sure you can find all the instances where a field might be in use. One reason for this is because fields can be referred to by wildcards.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

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