Splunk Search

Remove fields from a query

kahless1985
Explorer

The title says it all. I'm looking for a way to remove fields from searches and subsearches. I know I can hide fields from results with

| fields - "fieldName"

But I'm looking for a way to get "set diff" to operate on a singe filed. If I was using "diff" without "set" the the attribute parameter could be utilized but unfortunately this option seems to be disabled when the two are used in conjunction.

0 Karma

mydog8it
Builder

Search in a stats count by type search and then only redirect the interesting fields to a table, the results will only be the fields you send to the table.
Does that help?

0 Karma

somesoni2
Revered Legend

What's your current search(es)?

0 Karma

msivill_splunk
Splunk Employee
Splunk Employee

Could you create an expanded example of the SPL perhaps using | makeresults to generate the data for a standalone example?

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...