Splunk Enterprise

How to exclude field during ingestion through DB Connect?

Angelt_3114
Engager

Hey everyone,

I have a couple databases that are being ingested through DB Connect that have an excessive amount of fields, 300+. Some of these fields are not needed, either null or =" ", and was wondering if there is a way to exclude these before or during ingestion. 

Hope everyone has an awesome day!

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Instead of SELECT * FROM foo, specify the desired fields in the DBX query.  If that's not feasible then use the fields command to keep only the desired fields or discard the excessive ones.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

Angelt_3114
Engager

oh man! why did I not think of this? lol thank you so much! I started looking for over complicated solutions, instead of simple ones.  

richgalloway
SplunkTrust
SplunkTrust

Instead of SELECT * FROM foo, specify the desired fields in the DBX query.  If that's not feasible then use the fields command to keep only the desired fields or discard the excessive ones.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...