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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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