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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...