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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...