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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...